Package org.hibernate.search.annotations
Annotation Type Facet
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) @Documented @Deprecated @Repeatable(Facets.class) public @interface Facet
Deprecated.Use Hibernate Search 6's field annotations (GenericField,KeywordField,FullTextField, ...) and enable faceting withinstead.@GenericField(aggregable = Aggregable.YES)Extension annotation for@Fieldenabling it for faceting.- Author:
- Hardy Ferentschik
- Experimental
- : This feature is experimental
-
-
Element Detail
-
name
String name
Deprecated.- Returns:
- the facet name. Defaults to the name of the field this facet refers to
- Default:
- ""
-
-
-
forField
String forField
Deprecated.- Returns:
- the field name this annotation refers to. It can be omitted in case there is only a single
@Fieldannotation
- Default:
- ""
-
-