Hi Alessandro! I'm having a hard time on how to use the PathHierarchyTokenizerFactory. I was reading here: https://lucene.apache.org/core/4_4_0/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizerFactory.html
And ended up with this: <fieldType name="descendent_path" class="solr.TextField"> <analyzer type="index"> <tokenizer class="solr.PathHierarchyTokenizerFactory" delimiter=">" /> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory" /> </analyzer> </fieldType> I tried with these field definitions: <field name="categorystring_nl" type="string" indexed="true" stored="true" multiValued="true"/> <field name="categorystring_tokenized" type="descendent_path" indexed="true" stored="true" multiValued="true"/> And these querystring parameters in the request: 1. &facet.field=categorystring_nl --> this returns a facet with count based on full categorystring, e.g. "bruidstaart>taarttoppers>grappig", so I can't use that for the count on the highest category level (in this case "bruidstaart"): <lst name="categorystring_nl"> <int name="feestartikelen>ballonnen">15</int> <int name="bruidstaart>taarttoppers>grappig">6</int> <int name="taarttoppers>grappig">6</int> <int name="accessoires>tiaras">3</int> </lst> 2. &facet.field=categorystring_tokenized, this now returns: <lst name="categorystring_tokenized"> <int name="feestartikelen">15</int> <int name="feestartikelen>ballonnen">15</int> <int name="bruidstaart">6</int> <int name="bruidstaart>taarttoppers">6</int> <int name="bruidstaart>taarttoppers>grappig">6</int> <int name="taarttoppers">6</int> <int name="taarttoppers>grappig">6</int> <int name="accessoires">3</int> <int name="accessoires>tiaras">3</int> </lst> I'm now wondering, is this the data you expected me to end up with? Right now I still don't see how I can easily extract the hierarchy from this data, except by looping through the facets and count the number of ">" occurrences in the "name" attribute to determine the actual level in the hierarchy. Can you advice? Thanks again! -- View this message in context: http://lucene.472066.n3.nabble.com/Use-faceted-search-to-drill-down-in-hierarchical-structure-and-omit-node-data-outside-current-selectn-tp4219384p4219832.html Sent from the Solr - User mailing list archive at Nabble.com.