From 850235280576a6ff3786d7eb27121fa02caf94ec Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 10:26:09 -0700 Subject: extend ES client timeout to 25 seconds --- fatcat_scholar/search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fatcat_scholar') 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 -- cgit v1.2.3