I'm using the custom FieldBridge
https://github.com/hibernate/hibernate-search/blob/master/orm/src/test/java/org/hibernate/search/test/bridge/DateSplitBridge.java to split a Calendar in the year, month and day fields.
How do I configure Facet for such fields?
But when I try to do a faceted search I get the error:
Quote:
Facet request 'YEAR' tries to facet on field 'date.year' which either does not exist or is not configured for faceting (via @Facet)
I'm using programmatic API for the annotations and have tried several combinations like the one below, without any luck:
Code:
.property("creationDate", ElementType.METHOD)
.bridge(CalendarSplitBridge.class)
.field()
.name("date")
.analyze(Analyze.NO)
.store(Store.YES)
.facet();