@Facet on multi value field breaks indexing (be it for discrete or range faceting)

Description

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.

Phrase.java

The only indexed field in Tag is iid:

Tag.java

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.

Environment

hibernate version: 4.3.10.Final

Activity

Show:
Hardy Ferentschik
July 15, 2015, 8:08 AM

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.

Ashot Golovenko
July 19, 2015, 9:30 PM
Edited

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.

Marc Schipperheyn
December 2, 2015, 9:23 PM

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?

Sanne Grinovero
December 3, 2015, 4:18 PM

I'll have a look next week, sorry for missing this.

Ashot Golovenko
December 3, 2015, 4:38 PM

Marc, my workaround works fine for discrete values.

Assignee

Yoann Rodière

Reporter

Ashot Golovenko

Labels

None

Suitable for new contributors

None

Feedback Requested

None

Components

Fix versions

Affects versions

Priority

Major
Configure