summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_web/search.py2
-rw-r--r--python/web_config.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 0a3ea40e..4d45dcf1 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -34,7 +34,7 @@ def do_search(q, limit=50, fulltext_only=True):
#print(search_request)
resp = requests.get("%s/%s/_search" %
- (app.config['ELASTIC_BACKEND'], app.config['ELASTIC_INDEX']),
+ (app.config['ELASTICSEARCH_BACKEND'], app.config['ELASTICSEARCH_INDEX']),
json=search_request)
if resp.status_code != 200:
diff --git a/python/web_config.py b/python/web_config.py
index 749d0586..8e177f77 100644
--- a/python/web_config.py
+++ b/python/web_config.py
@@ -19,8 +19,8 @@ class Config(object):
# This is, effectively, the QA/PROD flag
FATCAT_DOMAIN = os.environ.get("FATCAT_DOMAIN", default="qa.fatcat.wiki")
# can set this to https://search.fatcat.wiki for some experimentation
- ELASTIC_BACKEND = os.environ.get("ELASTIC_BACKEND", default="http://localhost:9200")
- ELASTIC_INDEX = os.environ.get("ELASTIC_INDEX", default="fatcat")
+ ELASTICSEARCH_BACKEND = os.environ.get("ELASTICSEARCH_BACKEND", default="http://localhost:9200")
+ ELASTICSEARCH_INDEX = os.environ.get("ELASTICSEARCH_INDEX", default="fatcat")
# "Event more verbose" debug options. SECRET_KEY is bogus.
#SQLALCHEMY_ECHO = True