Uses of Class
org.springframework.data.mongodb.core.index.Index
Package
Description
Support for MongoDB document indexing.
-
Uses of Index in org.springframework.data.mongodb.core.index
Modifier and TypeClassDescriptionclass
Index definition to span multiple keys.class
WildcardIndex
is a specificIndex
that can be used to include all fields into an index based on the$**" : 1
pattern on a root object (the one typically carrying theDocument
annotation).Modifier and TypeMethodDescriptionIndex.background()
Build the index in background (non blocking).Index.expire
(long value) Specifies TTL in seconds.Specifies TTL with givenTimeUnit
.Specifies the TTL.WildcardIndex.expire
(long seconds) ttl option is not supported.ttl option is not supported.ttl option is not supported.Index.hidden()
Hidden indexes are not visible to the query planner and cannot be used to support a query.Index.on
(String key, Sort.Direction direction) Index.partial
(IndexFilter filter) Only index the documents in a collection that meet a specifiedfilter expression
.Index.sparse()
Skip over any document that is missing the indexed field.Index.unique()
Reject all documents that contain a duplicate value for the indexed field.WildcardIndex.unique()
Unique option is not supported.