diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 15:32:57 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-01-28 15:32:57 -0800 |
commit | 4137d2e8303999dedca404c2a369e7a8b6daf6ca (patch) | |
tree | e23b59551220e6c306069a80b742f4ceb28cb603 | |
parent | a0c2548c9ced4caa6ce088fed468059fe86013b8 (diff) | |
download | fatcat-4137d2e8303999dedca404c2a369e7a8b6daf6ca.tar.gz fatcat-4137d2e8303999dedca404c2a369e7a8b6daf6ca.zip |
more ES index fixes
-rw-r--r-- | python/fatcat_web/search.py | 2 | ||||
-rw-r--r-- | python/fatcat_web/web_config.py | 3 | ||||
-rwxr-xr-x | python/fatcat_worker.py | 2 |
3 files changed, 4 insertions, 3 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) diff --git a/python/fatcat_worker.py b/python/fatcat_worker.py index 0207fb19..f4c2f55d 100755 --- a/python/fatcat_worker.py +++ b/python/fatcat_worker.py @@ -63,7 +63,7 @@ def main(): default="http://localhost:9200") sub_elasticsearch_release.add_argument('--elasticsearch-index', help="elasticsearch index to push into", - default="fatcat") + default="fatcat_release") args = parser.parse_args() if not args.__dict__.get("func"): |