@KeywordField
is supposed to be used with String
type only.
Does it work with enum
annotated with EnumType.STRING
?
P.S. I would test it if I could but my project is on Hibernate Search 5 and now I have 192 errors not solved while trying to migrate to Hibernate Search 6 and there is no way to compile it and run it.
P.P.S. Now I have 30 errors and BooleanJunction
usage to convert to something else. Still don’t know what to do with this enum
.
public enum ObjectStatus {
ENABLED, DISABLED;
}
@KeywordField(
projectable = Projectable.NO,
searchable = Searchable.YES,
sortable = Sortable.YES
)
@Enumerated(EnumType.STRING)
private ObjectStatus objectStatus;