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/09/17 08:28:57 UTC
[kibble] branch master updated: cleanup and disallow searching
redundant indices
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 8e68ec3 cleanup and disallow searching redundant indices
8e68ec3 is described below
commit 8e68ec3ab2af2e37e1253721508f09227fc11d35
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Mon Sep 17 10:28:46 2018 +0200
cleanup and disallow searching redundant indices
we don't want duplicate counts for the same thing,
so disallow code_commit and file_history indices in search.
---
api/pages/org/contributors.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/api/pages/org/contributors.py b/api/pages/org/contributors.py
index 301e533..9210dff 100644
--- a/api/pages/org/contributors.py
+++ b/api/pages/org/contributors.py
@@ -109,7 +109,7 @@ def run(API, environ, indata, session):
emails = []
contribs = {}
- for field in ['email', 'address', 'author_email', 'assignee', 'issueCreator', 'issueCloser']:
+ for field in ['sender', 'author_email', 'issueCreator', 'issueCloser']:
N = 0
while N < 5:
query['aggs'] = {
@@ -126,7 +126,7 @@ def run(API, environ, indata, session):
}
res = session.DB.ES.search(
index=session.DB.dbname,
- doc_type="*",
+ doc_type="*,-*_code_commit,-*_file_history",
size = 0,
body = query
)