Open
Description
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
*/
default String createIndex(IndexDefinition indexDefinition) {
return ensureIndex(indexDefinition);
}