listIndexes()
This operation lists the indexes of a field in a specific collection.
public List<String> listIndexes(ListIndexesReq request)
Request Syntax
listIndexes(ListIndexesReq.builder()
.collectionName(String collectionName)
.fieldName(String fieldName)
.build()
)
BUILDER METHODS:
collectionName(String collectionName)
The name of a collection.
fieldName(String fieldName)
The name of the target field.
RETURNS:
List<String>
EXCEPTIONS:
MilvusClientExceptions
This exception will be raised when any error occurs during this operation.
Example
// list the indexes on the `varchar` field in the `test` collection
ListIndexesReq listIndexesReq = ListIndexesReq.builder()
.collectionName("test")
.fieldName("varchar")
.build();
List<String> indexes = client.listIndexes(ListIndexesReq);