Annotation Type Indexed


  • @Documented
    @Inherited
    @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Indexed
    Specified on fields that should be Indexed.
    Author:
    Scott Hernandez
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      IndexOptions options  
      dev.morphia.utils.IndexDirection value  
    • Element Detail

      • options

        IndexOptions options
        Returns:
        Options to apply to the index. Use of this field will ignore any of the deprecated options defined on Index directly.
        Default:
        @dev.morphia.annotations.IndexOptions
      • value

        dev.morphia.utils.IndexDirection value
        Returns:
        the type of the index (ascending, descending, geo2d); default is ascending
        See Also:
        IndexDirection
        Default:
        dev.morphia.utils.IndexDirection.ASC