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
and here is the problem in 5.0 version of elastic in aggregations ;
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 ?