Path hierarchy (Include, Exclude error)

Hey there,

we have been using path hierarchy for the Category Facets and everything was fine since we decided to upgrade to 2.2 from 5.x version of Elasticsearch. Let me tell you why.

Here is an example of our category hierarchy with a path hierarchy tokinezer and the delimeter is "" ;

categoryHierarchyField = a\b\c;

so index will be like below
a
a\b
a\b\c

and here is the problem in 5.0 version of elastic in aggregations ;
"aggs":{
"cats":{
"terms":{
"field":"cat",
"exclude":{
"pattern":".path..|.|.*"
}
}
}
}
}
So according to this https://github.com/elastic/elasticsearch/issues/22933 issue, this is a bug. Beyond that, you say include and exclude will be deprecated.
Is there any way to help me to aggregate category hierarchy and sort out the only problem between us and elasticsearch v 5.0 ?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.