Permalink
Browse files

ES: remove keyword in p*s queries

p0... px are already keywords in the index mapping (see #354 /
0269089). They should be removed from
the query.

Signed-off-by: Alban Dericbourg <a.dericbourg@criteo.com>
  • Loading branch information...
adericbourg authored and iksaif committed Jul 11, 2018
1 parent 07273e3 commit 3b25af36a4560541e4e3b2ea7ea9a11bd1ecfd13
Showing with 1 addition and 1 deletion.
  1. +1 −1 biggraphite/drivers/elasticsearch.py
@@ -517,7 +517,7 @@ def _search_metrics_from_glob(self, glob):
filter_type, value = parse_complex_component(c)
if filter_type:
search = search.filter(filter_type, **{"p%d.keyword" % i: value})
search = search.filter(filter_type, **{"p%d" % i: value})
return False, search
def glob_metric_names(self, glob):

0 comments on commit 3b25af3

Please sign in to comment.