T53161 Proof of Concept working USER search. WIP js.

This commit is contained in:
2017-11-17 16:05:22 +01:00
parent 76bb68dcc8
commit b03e8d5bd7
8 changed files with 200 additions and 18 deletions

View File

@@ -64,6 +64,21 @@ class ResetNodeIndex(ResetIndexTask):
doc_types = [documents.Node]
class ResetUserIndex(ResetIndexTask):
index = current_app.config['ELASTIC_INDICES']['USER']
doc_types = [documents.User]
def reset_node_index():
resettask = ResetNodeIndex()
resettask.execute()
def reset_index(indexnames):
if 'users' in indexnames:
resettask = ResetUserIndex()
resettask.execute()
if 'nodes' in indexnames:
resettask = ResetUserIndex()
resettask.execute()