@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 String value
fields()
fields()
this value will be
ignored and logged.public abstract Field[] fields
options()
and any options defined directly on this annotation will be ignored.public abstract IndexOptions options
Index
directly.public abstract String name
public abstract boolean unique
public abstract boolean dropDups
public abstract boolean background
public abstract boolean sparse
public abstract boolean disableValidation
public abstract int expireAfterSeconds