aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/elasticsearch_tools.py
diff options
context:
space:
mode:
authorzsloan2018-04-16 11:57:06 -0500
committerGitHub2018-04-16 11:57:06 -0500
commitf511e38a9b440d08313471cdcc7bfd99add98f70 (patch)
treec9462c0bec87f8314667195d9e2823300a172d05 /wqflask/utility/elasticsearch_tools.py
parenta58a4c3b8ee4f7256a18c99542ff6a9f355c0a2e (diff)
parent73916b813151ab549c95d952dc72b7c779e4ea2f (diff)
downloadgenenetwork2-f511e38a9b440d08313471cdcc7bfd99add98f70.tar.gz
Merge pull request #318 from pjotrp/testing
Testing
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)