Package dev.morphia.annotations
Annotation Type IndexOptions
-
@Documented @Inherited @Retention(RUNTIME) @Target(ANNOTATION_TYPE) public @interface IndexOptions
Defines the options to be used when declaring an index.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
background
Collation
collation
boolean
disableValidation
int
expireAfterSeconds
String
language
String
languageOverride
String
name
String
partialFilter
boolean
sparse
boolean
unique
-
-
-
-
language
String language
- Returns:
- The default language for the index.
- Default:
- ""
-
-
-
languageOverride
String languageOverride
- Returns:
- The field to use to override the default language.
- Default:
- ""
-
-
-
name
String name
- Returns:
- The name of the index to create; default is to let the mongodb create a name (in the form of key1_1/-1_key2_1/-1...)
- Default:
- ""
-
-
-
partialFilter
String partialFilter
- Returns:
- the filter to be used for this index
- Since:
- 1.3
- Default:
- ""
-
-
-
collation
Collation collation
- Returns:
- the collation to be used for this index. If the locale is empty, the collation is ignored.
- Since:
- 1.3
- Default:
- @dev.morphia.annotations.Collation(locale="")
-
-