Interface IndexResolver

All Known Implementing Classes:
MongoPersistentEntityIndexResolver

public interface IndexResolver
IndexResolver finds those IndexDefinitions to be created for a given class.

The IndexResolver considers index annotations like Indexed, GeoSpatialIndexed, HashIndexed, TextIndexed and WildcardIndexed on properties as well as CompoundIndex and WildcardIndexed on types.

Unless specified otherwise the index name will be created out of the keys/path involved in the index.
TextIndexed properties are collected into a single index that covers the detected fields.
Map like structures, unless annotated with WildcardIndexed, are skipped because the map key, which cannot be resolved from static metadata, needs to be part of the index.

Since:
1.5
Author:
Christoph Strobl, Thomas Darimont, Mark Paluch