Annotation Interface TextIndexed


@Documented @Target({FIELD,ANNOTATION_TYPE}) @Retention(RUNTIME) public @interface TextIndexed
TextIndexed marks a field to be part of the text index. As there can be only one text index per collection all fields marked with TextIndexed are combined into one single index.
Since:
1.6
Author:
Christoph Strobl, Mark Paluch
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    float
    Defines the significance of the filed relative to other indexed fields.
  • Element Details

    • weight

      float weight
      Defines the significance of the filed relative to other indexed fields. The value directly influences the documents score.
      Defaulted to 1.0.
      Returns:
      Default:
      1.0f