Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from elasticsearch import Elasticsearch
|
|
| 11 |
from elasticsearch_dsl import Search, Q
|
| 12 |
|
| 13 |
# es = Elasticsearch(os.environ.get("host"), timeout=100, http_compress=True, maxsize=1000)
|
| 14 |
-
es = Elasticsearch(os.environ.get("host"), timeout=200)
|
| 15 |
def mark_tokens_bold(text, query):
|
| 16 |
if query.startswith('"') and query.endswith('"'):
|
| 17 |
tokens = query[1:-1]
|
|
|
|
| 11 |
from elasticsearch_dsl import Search, Q
|
| 12 |
|
| 13 |
# es = Elasticsearch(os.environ.get("host"), timeout=100, http_compress=True, maxsize=1000)
|
| 14 |
+
es = Elasticsearch(os.environ.get("host"), http_compress=True, timeout=200)
|
| 15 |
def mark_tokens_bold(text, query):
|
| 16 |
if query.startswith('"') and query.endswith('"'):
|
| 17 |
tokens = query[1:-1]
|