I have an entity with indexed creation timestamp of java.time.Instant type and I'd like to facet search results by creation timestamp range.
The entity looks the following way:
@Entity
@Indexed
public class Document {
@Id
@DocumentId
private Long id;
@Field
private String name;
@Field(analyze = Analyze.NO)
@Facet
private Instant creationTimestamp;
}
When I start my application I get the following error:
org.hibernate.search.exception.SearchException: HSEARCH000264: @Facet is not supported for type 'java.time.Instant'. See org.hibernate.search.bugs.Document#creationTimestamp
I haven't found anything related to faceting by Instant value in hibernate documentation.
Is it possible to facet hibernate search results by creation timestamp range?
I've created a failing test case here: github repo link