org.hibernate.search.annotations
Annotation Type Field
@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
@Documented
public @interface Field
Annotation used for marking a property as indexable.
- Author:
- Emmanuel Bernard, Hardy Ferentschik
name
public abstract String name
- Returns:
- Returns the field name. Defaults to the JavaBean property name.
- Default:
- ""
store
public abstract Store store
- Returns:
- Returns a
Store
enum type indicating whether the value should be stored in the document. Defaults to Store.NO
.
- Default:
- org.hibernate.search.annotations.Store.NO
index
public abstract Index index
- Returns:
- Returns a
Index
enum defining how the value should be indexed. Defaults to Index.TOKENIZED
.
- Default:
- org.hibernate.search.annotations.Index.TOKENIZED
termVector
public abstract TermVector termVector
- Returns:
- Returns a
TermVector
enum defining if and how term vectors are stored. Defaults to TermVector.NO
.
- Default:
- org.hibernate.search.annotations.TermVector.NO
analyzer
public abstract Analyzer analyzer
- Returns:
- Returns the analyzer for the field. Defaults to the inherited analyzer.
- Default:
- @org.hibernate.search.annotations.Analyzer
boost
public abstract 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
public abstract FieldBridge bridge
- Returns:
- Returns the field bridge used for this field. Default is autowired.
- Default:
- @org.hibernate.search.annotations.FieldBridge
indexNullAs
public abstract String indexNullAs
- Returns:
- Returns the value to be used for indexing
null
. Per default Field.NO_NULL_INDEXING
is returned indicating that
null values are not indexed.
- Default:
- "__DO_NOT_INDEX_NULL__"
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved