aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/elasticsearch_tools.py
diff options
context:
space:
mode:
authorMuriithi Frederick Muriuki2018-04-16 18:46:29 +0300
committerMuriithi Frederick Muriuki2018-04-16 18:46:29 +0300
commitfcc43dd4008692b27935d90fcfd134d6c5d9495e (patch)
tree9dad17670954ecaf78386037ff826d7a6caeeedf /wqflask/utility/elasticsearch_tools.py
parentf8df8836e33ad226aaa7d2f8874d7a1a08a670dc (diff)
downloadgenenetwork2-fcc43dd4008692b27935d90fcfd134d6c5d9495e.tar.gz
Remove statements that might be causing issues
* I can't swear on this, but it seems the presence of these statements was causing elasticsearch to act weird.
Diffstat (limited to 'wqflask/utility/elasticsearch_tools.py')
-rw-r--r--wqflask/utility/elasticsearch_tools.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/wqflask/utility/elasticsearch_tools.py b/wqflask/utility/elasticsearch_tools.py
index 76dcaebf..cce210c3 100644
--- a/wqflask/utility/elasticsearch_tools.py
+++ b/wqflask/utility/elasticsearch_tools.py
@@ -84,9 +84,7 @@ def setup_users_index(es_connection):
"type": "keyword"}}}
es_connection.indices.create(index='users', ignore=400)
- es_connection.indices.close(index="users")
es_connection.indices.put_mapping(body=index_settings, index="users", doc_type="local")
- es_connection.indices.open(index="users")
def get_user_by_unique_column(es, column_name, column_value, index="users", doc_type="local"):
return get_item_by_unique_column(es, column_name, column_value, index=index, doc_type=doc_type)