SearchIndexClient.getIndex(String indexName) Method
Definition
Retrieves an index definition from the Azure Cognitive Search.
Code Sample
Get search index with name "searchIndex".
SearchIndex indexFromService =
searchIndexClient.getIndex("searchIndex");
System.out.printf("The index name is %s. The etag of index is %s.%n", indexFromService.getName(),
indexFromService.getETag());
public SearchIndex getIndex(String indexName)
Parameters
- indexName
- java.lang.String
the name of the index to retrieve
Returns
the Index.