Related issue that probably will have to be solved first: (Range faceting on multiple numeric values does not work)
I have a Phrase entity with multiple Tags.
The only indexed field in Tag is iid:
Adding a @Facet annotation to mapping results in the following exception while indexing:
Removing @Facet annotation removes the exception along with ability for faceting on tag Ids.
I didn't find any evidence that faceting over multi value fields is deprecated in 5.3.0.Final so it makes me think that it's a bug.
hibernate version: 4.3.10.Final
Since I only need discrete faceting I've changed method signature to public String getIndexingId() and now it's working. Thanks!
Great that this works for you.
Regarding your "feature request" - @IndexedEmbedded(includeEmbeddedObjectId = true, facetEmbeddedObjectId = true). This makes the object even more of a special case and as mentioned I think it is quite unusual to facet over the id. More important would be to be able to have multi value numeric field faceting. We look into it.
I think it is quite unusual to facet over the id
Well, my tags have different label for each language. This leaves me with no option but to facet over tag id.
I'm preparing to migrate to Hibernate Search Facets (I use Bobo now). This issue will surely be a problem for me because I also work in a multilingual scenario and facet using ids. Is there any progress on this issue?
I'll have a look next week, sorry for missing this.
Marc, my workaround works fine for discrete values.