[
https://issues.apache.org/jira/browse/SOLR-3674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13437951#comment-13437951
]
Mandar commented on SOLR-3674:
------------------------------
I am trying to use HierarchicalFaceting
described at
http://wiki.apache.org/solr/HierarchicalFaceting
Documentation doesn't clearly explain how we get the levels indexed i.e. using
PathHierarchyTokenizerFactory
0/electronics
1/electronics/tv
2/electronics/tv/lcd
0/digital
1/digital/tv
2/digital/tv/lcd
If we use facet.field = category and facet.prefix = /electronics/tv, it would
work, but I am strugling to find the level 0 i.e. the Main categories
> PathHierarchyTokenizerFactory needs better docs, tests, and example config
> --------------------------------------------------------------------------
>
> Key: SOLR-3674
> URL: https://issues.apache.org/jira/browse/SOLR-3674
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 3.1, 4.0-ALPHA
> Reporter: Hoss Man
> Assignee: Hoss Man
> Fix For: 4.0-BETA, 5.0
>
> Attachments: SOLR-3674.patch
>
>
> As noted by Alok Bhandari on the solr-user mailing list, the example
> configuration of PathHierarchyTokenizerFactory (in both the example
> schema.xml and in the factory javadocs) is not very useful to most people
> because it uses the tokenizer both at index and at query time.
> So a query like {{q=text_path_field:"/aaa/bbb/ccc"}} will not only match
> "/aaa/bbb/ccc" and "/aaa/bbb/ccc/ddd" but also "/aaa/" and "/aaa/xxxx" which
> is not likely what people expect.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]