You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2020/05/02 13:35:45 UTC

[kibble] branch master updated: Fix index setup

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble.git


The following commit(s) were added to refs/heads/master by this push:
     new c52f7dc  Fix index setup
c52f7dc is described below

commit c52f7dcffdef6b7dc25c393802ddc82c99b47e60
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat May 2 08:35:31 2020 -0500

    Fix index setup
    
    The wrapper takes care of the doc types, so this shouldn't be hardcoded here or we risk duplicating the doc type
---
 setup/setup.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/setup/setup.py b/setup/setup.py
index 02b4d56..ecc4e54 100644
--- a/setup/setup.py
+++ b/setup/setup.py
@@ -259,8 +259,8 @@ def createIndex():
         'apiversion': KIBBLE_VERSION,           # Log current API version
         'dbversion': KIBBLE_DB_VERSION          # Log the database revision we accept (might change!)
     }
-    es.index(index=dbname + '_useraccount', doc_type = '_doc', id = adminName, body = doc)
-    es.index(index=dbname + '_api', doc_type = '_doc', id = 'current', body = dbdoc)
+    es.index(index=dbname, doc_type = 'useraccount', id = adminName, body = doc)
+    es.index(index=dbname, doc_type = 'api', id = 'current', body = dbdoc)
     print("Account created!")
 
 try: