aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-11-21 13:14:23 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-11-21 13:14:23 -0800
commit7f1fd61ac875c3bd58ced3a1fdbc9539d9f54644 (patch)
tree058ea52f4507e958124da438fe4844d55b94e71d
parentb02b3c311ca708e1270fbbc7332a4c752061da87 (diff)
downloadfatcat-7f1fd61ac875c3bd58ced3a1fdbc9539d9f54644.tar.gz
fatcat-7f1fd61ac875c3bd58ced3a1fdbc9539d9f54644.zip
ELASTICSEARCH not ELASTIC
-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