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 2018/03/02 10:22:49 UTC
[kibble] 03/04: use wildcard doc type for counting
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
commit cbf89343748b85fdee4467fdd1af2e08c6697ae7
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Mar 2 10:52:54 2018 +0100
use wildcard doc type for counting
the new wrapper expects a doc type, due to DB changes,
so pass '*' as the type, in order to count everything.
---
api/pages/org/list.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/api/pages/org/list.py b/api/pages/org/list.py
index 28d6d6f..510f796 100644
--- a/api/pages/org/list.py
+++ b/api/pages/org/list.py
@@ -138,6 +138,7 @@ def run(API, environ, indata, session):
orgID = doc['_source']['id']
numDocs = session.DB.ES.count(
index=session.DB.dbname,
+ doc_type = '*',
body = {'query': { 'term': {'organisation': orgID}}}
)['count']
numSources = session.DB.ES.count(
--
To stop receiving notification emails like this one, please contact
humbedooh@apache.org.