Skip to content

The Javadoc for IndexOperations#createIndex is incorrect #5010

Open
@bjansen

Description

@bjansen

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);
	}

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions