Annotation Type Text


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Text
    Marks this field for inclusion in text indexing. There can only be on instance of this field on a class/collection due to the server limiting one text index per collection.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      IndexOptions options  
      int value  
    • Element Detail

      • options

        IndexOptions options
        Returns:
        Options to apply to the index
        Default:
        @dev.morphia.annotations.IndexOptions
      • value

        int value
        Returns:
        Weight of the field. If a weight is omitted from this item, the weight is assumed to the database default.
        Default:
        -1