You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like this Javadoc was copy/pasted from ensureIndex, at the moment it's not clear what happens if the index already exists:
/** * Create the index for the provided {@link IndexDefinition} exists for the collection indicated by the entity class. * If not it will be created. * * @param indexDefinition must not be {@literal null}. * @return the index name. * @since 4.5 */defaultStringcreateIndex(IndexDefinitionindexDefinition) {
returnensureIndex(indexDefinition);
}