@Documented @Inherited @Retention(value=RUNTIME) @Target(value=ANNOTATION_TYPE) public @interface Index
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
background
Deprecated.
use the
IndexOptions found in options() |
boolean |
disableValidation
Deprecated.
use the
IndexOptions found in options() |
boolean |
dropDups
Deprecated.
use the
IndexOptions found in options() |
int |
expireAfterSeconds
Deprecated.
use the
IndexOptions found in options() |
Field[] |
fields
List of fields to include in the index.
|
String |
name
Deprecated.
use the
IndexOptions found in options() |
IndexOptions |
options
Options to apply to the index.
|
boolean |
sparse
Deprecated.
use the
IndexOptions found in options() |
boolean |
unique
Deprecated.
use the
IndexOptions found in options() |
String |
value
Deprecated.
use
fields() |
public abstract IndexOptions options
Index directly.@Deprecated public abstract boolean background
IndexOptions found in options()@Deprecated public abstract boolean disableValidation
IndexOptions found in options()@Deprecated public abstract boolean dropDups
IndexOptions found in options()@Deprecated public abstract int expireAfterSeconds
IndexOptions found in options()@Deprecated public abstract String name
IndexOptions found in options()@Deprecated public abstract boolean sparse
IndexOptions found in options()@Deprecated public abstract boolean unique
IndexOptions found in options()@Deprecated public abstract String value
fields()fields() this value will be
ignored and logged.