summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/query_fatcat.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-25 17:13:14 -0800
commit5aed3803affdb3f05b881cb90496180be45da440 (patch)
tree5a4de19de020ad063f5f85219ad24851ed7373c7 /fatcat_scholar/query_fatcat.py
parent3340910073bca6483937ed6d9e5f5b5942833c2e (diff)
downloadfatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.tar.gz
fatcat-scholar-5aed3803affdb3f05b881cb90496180be45da440.zip
refactor ES configuration setting names
Diffstat (limited to 'fatcat_scholar/query_fatcat.py')
-rw-r--r--fatcat_scholar/query_fatcat.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatcat_scholar/query_fatcat.py b/fatcat_scholar/query_fatcat.py
index c862bc0..0f5347b 100644
--- a/fatcat_scholar/query_fatcat.py
+++ b/fatcat_scholar/query_fatcat.py
@@ -44,8 +44,8 @@ def run_query_fatcat(query: str, fulltext_only: bool, json_output: Any) -> None:
"""
api_session = requests_retry_session()
- es_backend = os.environ.get("ELASTICSEARCH_BACKEND", "https://search.fatcat.wiki")
- es_index = "fatcat_release"
+ es_backend = os.environ.get("ELASTICSEARCH_FATCAT_BASE", "https://search.fatcat.wiki")
+ es_index = os.environ.get("ELASTICSEARCH_FATCAT_RELEASE_INDEX", "fatcat_release")
es_client = elasticsearch.Elasticsearch(es_backend)
search = Search(using=es_client, index=es_index)