Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ def match_query(query, num_results=10):
|
|
45 |
response = s.execute()
|
46 |
return response
|
47 |
|
48 |
-
def phrase_query(query, num_results=
|
49 |
s = Search(using=es, index=os.environ.get("index"))
|
50 |
s.query = Q("match_phrase", content=query)
|
51 |
s = s[:num_results]
|
|
|
45 |
response = s.execute()
|
46 |
return response
|
47 |
|
48 |
+
def phrase_query(query, num_results=100):
|
49 |
s = Search(using=es, index=os.environ.get("index"))
|
50 |
s.query = Q("match_phrase", content=query)
|
51 |
s = s[:num_results]
|