aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-06 10:26:09 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-06 10:26:09 -0700
commit850235280576a6ff3786d7eb27121fa02caf94ec (patch)
tree5e855f1004928161d0f4b2966fcfa4f54cf7c44a
parent6c7814147bcb7f735abe3a33c34151a5374bc6b9 (diff)
downloadfatcat-scholar-850235280576a6ff3786d7eb27121fa02caf94ec.tar.gz
fatcat-scholar-850235280576a6ff3786d7eb27121fa02caf94ec.zip
extend ES client timeout to 25 seconds
-rw-r--r--fatcat_scholar/search.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py
index 611e185..b991583 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -88,7 +88,7 @@ def do_fulltext_search(
query: FulltextQuery, deep_page_limit: int = 2000
) -> FulltextHits:
- es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_BACKEND)
+ es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_BACKEND, timeout=25.0)
search = Search(using=es_client, index=settings.ELASTICSEARCH_FULLTEXT_INDEX)
# Convert raw DOIs to DOI queries