summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-28 15:32:57 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-28 15:32:57 -0800
commit4137d2e8303999dedca404c2a369e7a8b6daf6ca (patch)
treee23b59551220e6c306069a80b742f4ceb28cb603 /python/fatcat_web
parenta0c2548c9ced4caa6ce088fed468059fe86013b8 (diff)
downloadfatcat-4137d2e8303999dedca404c2a369e7a8b6daf6ca.tar.gz
fatcat-4137d2e8303999dedca404c2a369e7a8b6daf6ca.zip
more ES index fixes
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/search.py2
-rw-r--r--python/fatcat_web/web_config.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/python/fatcat_web/search.py b/python/fatcat_web/search.py
index 471e522a..5b8fed8f 100644
--- a/python/fatcat_web/search.py
+++ b/python/fatcat_web/search.py
@@ -33,7 +33,7 @@ def do_search(q, limit=50, fulltext_only=True):
#print(search_request)
resp = requests.get("%s/%s/_search" %
- (app.config['ELASTICSEARCH_BACKEND'], app.config['ELASTICSEARCH_INDEX']),
+ (app.config['ELASTICSEARCH_BACKEND'], app.config['ELASTICSEARCH_RELEASE_INDEX']),
json=search_request)
if resp.status_code != 200:
diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py
index 9ce32ed7..8fe50049 100644
--- a/python/fatcat_web/web_config.py
+++ b/python/fatcat_web/web_config.py
@@ -25,7 +25,8 @@ class Config(object):
# can set this to https://search.fatcat.wiki for some experimentation
ELASTICSEARCH_BACKEND = os.environ.get("ELASTICSEARCH_BACKEND", default="http://localhost:9200")
- ELASTICSEARCH_INDEX = os.environ.get("ELASTICSEARCH_INDEX", default="fatcat")
+ ELASTICSEARCH_RELEASE_INDEX = os.environ.get("ELASTICSEARCH_RELEASE_INDEX", default="fatcat_release")
+ ELASTICSEARCH_CONTAINER_INDEX = os.environ.get("ELASTICSEARCH_CONTAINER_INDEX", default="fatcat_container")
# for flask things, like session cookies
FLASK_SECRET_KEY = os.environ.get("FLASK_SECRET_KEY", default=None)