org.springframework.data.document.mongodb.index
Annotation Type Indexed
@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Indexed
Mark a field to be indexed using MongoDB's indexing feature.
- Author:
- Jon Brisbin
unique
public abstract boolean unique
- Default:
- false
direction
public abstract IndexDirection direction
- Default:
- org.springframework.data.document.mongodb.index.IndexDirection.ASCENDING
sparse
public abstract boolean sparse
- Default:
- false
dropDups
public abstract boolean dropDups
- Default:
- false
name
public abstract java.lang.String name
- Default:
- ""
collection
public abstract java.lang.String collection
- Default:
- ""