aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2022-01-10 18:33:00 -0800
committerBryan Newbold <bnewbold@archive.org>2022-01-10 18:33:00 -0800
commitc9c1827f5054b8ab595c5f0af97c87a44b12f70d (patch)
treeef84ad4ff448036985d5171132c937c11b496e77
parente2bcaba3381c5af5f40f0c1ec2ccb5bdcdd18c7f (diff)
downloadfatcat-scholar-c9c1827f5054b8ab595c5f0af97c87a44b12f70d.tar.gz
fatcat-scholar-c9c1827f5054b8ab595c5f0af97c87a44b12f70d.zip
elasticsearch: bump query timeout to 40 seconds (from 25)
-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 b99a661..57ee71c 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -100,7 +100,7 @@ class FulltextHits(BaseModel):
# global sync client connection
-es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_QUERY_BASE, timeout=25.0)
+es_client = elasticsearch.Elasticsearch(settings.ELASTICSEARCH_QUERY_BASE, timeout=40.0)
def transform_es_results(resp: Response) -> List[dict]: