Package org.hibernate.search.annotations
Annotation Type Field
-
@Retention(RUNTIME) @Target({METHOD,FIELD}) @Documented @Deprecated @Repeatable(Fields.class) @PropertyMapping(processor=@PropertyMappingAnnotationProcessorRef(type=org.hibernate.search.annotations.impl.FieldAnnotationProcessor.class,retrieval=CONSTRUCTOR)) public @interface Field
Deprecated.Use Hibernate Search 6's field annotations instead:FullTextFieldfor text fields with an analyzer.KeywordFieldfor text fields with a normalizer.GenericFieldfor non-text fields.
Annotation used for marking a property as indexable.- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
-
Field Summary
Fields Modifier and Type Fields Description static StringDO_NOT_INDEX_NULLDeprecated.Default value for theindexNullAs()parameter.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description AnalyzeanalyzeDeprecated.AnalyzeranalyzerDeprecated.IndexindexDeprecated.StringindexNullAsDeprecated.StringnameDeprecated.NormalizernormalizerDeprecated.NormsnormsDeprecated.StorestoreDeprecated.TermVectortermVectorDeprecated.
-
-
-
Field Detail
-
DO_NOT_INDEX_NULL
static final String DO_NOT_INDEX_NULL
Deprecated.Default value for theindexNullAs()parameter. Indicates thatnullvalues should not be indexed.
-
-
Element Detail
-
name
String name
Deprecated.- Returns:
- Returns the field name. Defaults to the JavaBean property name.
- Default:
- ""
-
-
-
store
Store store
Deprecated.- Returns:
- Returns a
Storeenum type indicating whether the value should be stored in the document. Defaults toStore.NO.
- Default:
- org.hibernate.search.annotations.Store.NO
-
-
-
index
Index index
Deprecated.- Returns:
- Returns a
Indexenum defining whether the value should be indexed or not. Defaults toIndex.YES.
- Default:
- org.hibernate.search.annotations.Index.YES
-
-
-
analyze
Analyze analyze
Deprecated.- Returns:
- Returns a
Analyzeenum defining whether the value should be analyzed or not. Defaults toAnalyze.YES.
- Default:
- org.hibernate.search.annotations.Analyze.YES
-
-
-
norms
Norms norms
Deprecated.- Returns:
- Returns a
Normsenum defining whether the norms should be stored in the index or not. Defaults toNorms.YES.
- Default:
- org.hibernate.search.annotations.Norms.YES
-
-
-
termVector
TermVector termVector
Deprecated.- Returns:
- Returns a
TermVectorenum defining if and how term vectors are stored. Defaults toTermVector.NO.
- Default:
- org.hibernate.search.annotations.TermVector.NO
-
-
-
analyzer
Analyzer analyzer
Deprecated.- Returns:
- Returns the analyzer for the field. Defaults to the inherited analyzer.
Must be empty if
normalizer()is used.
- Default:
- @org.hibernate.search.annotations.Analyzer
-
-
-
normalizer
Normalizer normalizer
Deprecated.- Returns:
- Returns the normalizer for the field. Defaults to none.
Must be empty if
analyzer()is used.
- Default:
- @org.hibernate.search.annotations.Normalizer
-
-
-
indexNullAs
String indexNullAs
Deprecated.- Returns:
- Returns the value to be used for indexing
null. Per defaultField.NO_NULL_INDEXINGis returned indicating that null values are not indexed.
- Default:
- "__DO_NOT_INDEX_NULL__"
-
-