Fixed
Details
Assignee
Hardy FerentschikHardy FerentschikReporter
Elmer van ChasteletElmer van ChasteletComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Hardy Ferentschik
Hardy FerentschikReporter
Elmer van Chastelet
Elmer van ChasteletComponents
Fix versions
Affects versions
Priority
Created April 14, 2011 at 10:49 AM
Updated March 5, 2014 at 11:10 AM
Resolved February 20, 2014 at 6:48 PM
From Hibernate Search Forum: Bug or not? Faceted search + embedded fields (*tomany).
Faceted search won't work correctly when used on collections. For the cause I quote Hardy Ferentschik : — The current faceting implementation utilizes the Lucene FieldCache which has a limitation that each document must have a single value for the specified field.
I can think of many use cases in which faceted search on collections is really needed, some examples:
Facetting on authors when searching for publications
Facetting on ingredients when searching for recipes
Facetting on actors when searching for movies
...
Attached is a hibernate search test case. It fails on retrieving the right amount of matched authors.
Currently I don't have the needed insight to suggest an improvement on current implementation to make it compatible with collections. Hopefully it can be achieved with small changes. Good luck