Skip to content

Commit

Permalink
HSEARCH-115 Adding a new parameter 'nullIndexToken' for indexing null…
Browse files Browse the repository at this point in the history
… values
  • Loading branch information
hferentschik committed Nov 4, 2010
1 parent 7718fe0 commit b2ca27f
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -44,6 +44,8 @@
@Target({ ElementType.METHOD, ElementType.FIELD })
@Documented
public @interface Field {
public static final String NO_NULL_INDEXING = "VALUE USED AS DEFAULT FOR nullIndexToken";

/**
* @return Returns the field name. Defaults to the JavaBean property name.
*/
Expand Down Expand Up @@ -78,4 +80,10 @@
* @return Returns the field bridge used for this field. Default is autowired.
*/
FieldBridge bridge() default @FieldBridge;

/**
* @return Returns the value to be used for indexing {@code null}. Per default {@code Field.NO_NULL_INDEXING} is returned indicating that
* null values are not indexed.
*/
String nullIndexToken() default NO_NULL_INDEXING;
}

0 comments on commit b2ca27f

Please sign in to comment.