org.hibernate.search.annotations
Annotation Type NumericField


@Retention(value=RUNTIME)
@Target(value={METHOD,FIELD})
@Documented
public @interface NumericField

Extension annotation for @Field supporting Lucene's numeric field feature.

Author:
Gustavo Fernandes

Optional Element Summary
 String forField
           
 int precisionStep
           
 

precisionStep

public abstract int precisionStep
Returns:
Precision step for numeric field. The less, more terms will be present in the index.
Default:
4

forField

public abstract String forField
Returns:
Field name this annotation refers to. If omitted, refers to the @Field annotation in case there's only one
Default:
""


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved