Package dev.morphia.annotations
Annotation Interface Field
Define a field to be used in an index;
-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
value
String value- Returns:
- Field name to index
-
-
-
type
IndexType type- Returns:
- "Direction" of the indexing. Defaults to
IndexType.ASC
. - See Also:
- Default:
- ASC
-
weight
int weight- Returns:
- The weight to use when creating a text index. This value only makes sense when direction is
IndexType.TEXT
- Default:
- -1
-