diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 10:26:09 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 10:26:09 -0700 |
commit | 850235280576a6ff3786d7eb27121fa02caf94ec (patch) | |
tree | 5e855f1004928161d0f4b2966fcfa4f54cf7c44a /fatcat_scholar | |
parent | 6c7814147bcb7f735abe3a33c34151a5374bc6b9 (diff) | |
download | fatcat-scholar-850235280576a6ff3786d7eb27121fa02caf94ec.tar.gz fatcat-scholar-850235280576a6ff3786d7eb27121fa02caf94ec.zip |
extend ES client timeout to 25 seconds
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/search.py | 2 |
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 |