Annotation Interface Field


@Retention(RUNTIME) @Target({METHOD,FIELD}) @Documented public @interface Field
Annotation used for marking a property as indexable.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Value for the indexNullAs() parameter indicating that null values should be indexed using the null token given through the org.hibernate.search.cfg.Environment#DEFAULT_NULL_TOKEN configuration property.
    static final String
    Default value for the indexNullAs() parameter.
  • Field Details

    • DO_NOT_INDEX_NULL

      static final String DO_NOT_INDEX_NULL
      Default value for the indexNullAs() parameter. Indicates that null values should not be indexed.
      See Also:
    • DEFAULT_NULL_TOKEN

      static final String DEFAULT_NULL_TOKEN
      Value for the indexNullAs() parameter indicating that null values should be indexed using the null token given through the org.hibernate.search.cfg.Environment#DEFAULT_NULL_TOKEN configuration property. If no value is given for that property, the token _null_ will be used.
      See Also:
  • Element Details

    • name

      String name
      Returns:
      Returns the field name. Defaults to the JavaBean property name.
      Default:
      ""
    • indexNullAs

      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__"