From 4137d2e8303999dedca404c2a369e7a8b6daf6ca Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 28 Jan 2019 15:32:57 -0800 Subject: more ES index fixes --- python/fatcat_web/search.py | 2 +- python/fatcat_web/web_config.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web') 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) -- cgit v1.2.3