Package org.hibernate.search.annotations
Annotation Type Field
Annotation used for marking a property as indexable.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue forindexNullAs()parameter indicating thatnullvalues should not indexed using thestatic final StringDefault value forindexNullAs()parameter.
-
Field Details
-
DO_NOT_INDEX_NULL
Default value forindexNullAs()parameter. Indicates thatnullvalues should not be indexed.- See Also:
-
DEFAULT_NULL_TOKEN
Value forindexNullAs()parameter indicating thatnullvalues should not indexed using the- See Also:
-
-
Element Details
-
name
String name- Returns:
- Returns the field name. Defaults to the JavaBean property name.
- Default:
""
-
store
Store store- Returns:
- Returns a
Storeenum type indicating whether the value should be stored in the document. Defaults toStore.NO.
- Default:
NO
-
index
Index index- Returns:
- Returns a
Indexenum defining how the value should be indexed. Defaults toIndex.TOKENIZED.
- Default:
TOKENIZED
-
termVector
TermVector termVector- Returns:
- Returns a
TermVectorenum defining if and how term vectors are stored. Defaults toTermVector.NO.
- Default:
NO
-
analyzer
Analyzer analyzer- Returns:
- Returns the analyzer for the field. Defaults to the inherited analyzer.
- Default:
@org.hibernate.search.annotations.Analyzer
-
boost
Boost boost- Returns:
- Returns the boost factor for the field. Default boost factor is 1.0.
- Default:
@org.hibernate.search.annotations.Boost(1.0f)
-
bridge
FieldBridge bridge- Returns:
- Returns the field bridge used for this field. Default is autowired.
- Default:
@org.hibernate.search.annotations.FieldBridge
-
indexNullAs
String indexNullAs- 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__"
-