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.
Annotation used for marking a property as indexable.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Default value for theindexNullAs()parameter.
-
Field Details
-
DO_NOT_INDEX_NULL
Deprecated.Default value for theindexNullAs()parameter. Indicates thatnullvalues should not be indexed.- See Also:
-
-
Element Details
-
name
String nameDeprecated.- Returns:
- Returns the field name. Defaults to the JavaBean property name.
- Default:
- ""
-
store
Store storeDeprecated.- Returns:
- Returns a
Storeenum type indicating whether the value should be stored in the document. Defaults toStore.NO.
- Default:
- NO
-
index
Index indexDeprecated.- Returns:
- Returns a
Indexenum defining whether the value should be indexed or not. Defaults toIndex.YES.
- Default:
- YES
-
analyze
Analyze analyzeDeprecated.- Returns:
- Returns a
Analyzeenum defining whether the value should be analyzed or not. Defaults toAnalyze.YES.
- Default:
- YES
-
norms
Norms normsDeprecated.- Returns:
- Returns a
Normsenum defining whether the norms should be stored in the index or not. Defaults toNorms.YES.
- Default:
- YES
-
termVector
TermVector termVectorDeprecated.- Returns:
- Returns a
TermVectorenum defining if and how term vectors are stored. Defaults toTermVector.NO.
- Default:
- NO
-
analyzer
Analyzer analyzerDeprecated.- 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 normalizerDeprecated.- 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 indexNullAsDeprecated.- 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__"
-
FullTextFieldfor text fields with an analyzer.KeywordFieldfor text fields with a normalizer.GenericFieldfor non-text fields.