Module spring.data.mongodb
Interface SearchIndexOperationsProvider
- All Known Implementing Classes:
MongoTemplate
public interface SearchIndexOperationsProvider
Provider interface to obtain
SearchIndexOperations by MongoDB collection name or entity type.- Since:
- 4.5
- Author:
- Christoph Strobl, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionsearchIndexOps(Class<?> type) Returns the operations that can be performed on search indexes.searchIndexOps(Class<?> type, String collectionName) Returns the operations that can be performed on search indexes.searchIndexOps(String collectionName) Returns the operations that can be performed on search indexes.
-
Method Details
-
searchIndexOps
Returns the operations that can be performed on search indexes.- Parameters:
collectionName- name of the MongoDB collection, must not be null.- Returns:
- index operations on the named collection
-
searchIndexOps
Returns the operations that can be performed on search indexes.- Parameters:
type- the type used for field mapping.- Returns:
- index operations on the named collection
-
searchIndexOps
Returns the operations that can be performed on search indexes.- Parameters:
collectionName- name of the MongoDB collection, must not be null.type- the type used for field mapping. Can be null.- Returns:
- index operations on the named collection
-