Example usage for Java com.mongodb.client.model Indexes fields, constructors, methods, implement or subclass
The text is from its open source code.
Bson | ascending(final String... fieldNames) Create an index key for an ascending index on the given fields. |
Bson | ascending(final List Create an index key for an ascending index on the given fields. |
Bson | descending(final String... fieldNames) Create an index key for an ascending index on the given fields. |
Bson | descending(final List Create an index key for an ascending index on the given fields. |
Bson | text(final String fieldName) Create an index key for a text index on the given field. |