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

Optional Element Summary
 Analyze analyze
           
 Analyzer analyzer
           
 Boost boost
           
 FieldBridge bridge
           
 Index index
           
 String indexNullAs
           
 String name
           
 Norms norms
           
 Store store
           
 TermVector termVector
           
 

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 whether the value should be indexed or not. Defaults to Index.YES.
Default:
org.hibernate.search.annotations.Index.YES

analyze

public abstract Analyze analyze
Returns:
Returns a Analyze enum defining whether the value should be analyzed or not. Defaults to Analyze.YES.
Default:
org.hibernate.search.annotations.Analyze.YES

norms

public abstract Norms norms
Returns:
Returns a Norms enum defining whether the norms should be stored in the index or not. Defaults to Norms.YES.
Default:
org.hibernate.search.annotations.Norms.YES

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 auto-wired.
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