SearchIndexerClient Class
- java.
lang. Object - com.
azure. search. documents. indexes. SearchIndexerClient
- com.
public final class SearchIndexerClient
Initializes a new instance of the synchronous SearchIndexerClient type.
Method Summary
Methods inherited from java.lang.Object
Method Details
createDataSourceConnection
public SearchIndexerDataSourceConnection createDataSourceConnection(SearchIndexerDataSourceConnection dataSourceConnection)
Creates a new datasource.
Parameters:
Returns:
createDataSourceConnectionWithResponse
public Response<SearchIndexerDataSourceConnection> createDataSourceConnectionWithResponse(SearchIndexerDataSourceConnection dataSourceConnection, RequestOptions requestOptions)
Creates a new datasource.
Parameters:
Returns:
createIndexer
public SearchIndexer createIndexer(SearchIndexer indexer)
Creates a new indexer.
Parameters:
Returns:
createIndexerWithResponse
public Response<SearchIndexer> createIndexerWithResponse(SearchIndexer indexer, RequestOptions requestOptions)
Creates a new indexer.
Parameters:
Returns:
createOrUpdateDataSourceConnection
public SearchIndexerDataSourceConnection createOrUpdateDataSourceConnection(SearchIndexerDataSourceConnection dataSource)
Creates a new datasource or updates a datasource if it already exists.
Parameters:
Returns:
createOrUpdateDataSourceConnectionWithResponse
public Response<SearchIndexerDataSourceConnection> createOrUpdateDataSourceConnectionWithResponse(SearchIndexerDataSourceConnection dataSource, RequestOptions requestOptions)
Creates a new datasource or updates a datasource if it already exists.
Query Parameters
| ----------------------- | ------- | -------- | --------------------------------- |
| Name | Type | Required | Description |
| ignoreResetRequirements | Boolean | No | Ignores cache reset requirements. |
You can add these to a request with RequestOptions#addQueryParam
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
createOrUpdateIndexer
public SearchIndexer createOrUpdateIndexer(SearchIndexer indexer)
Creates a new indexer or updates an indexer if it already exists.
Parameters:
Returns:
createOrUpdateIndexerWithResponse
public Response<SearchIndexer> createOrUpdateIndexerWithResponse(SearchIndexer indexer, RequestOptions requestOptions)
Creates a new indexer or updates an indexer if it already exists.
Query Parameters
| --------------------------------------- | ------- | -------- | --------------------------------------------- |
| Name | Type | Required | Description |
| ignoreResetRequirements | Boolean | No | Ignores cache reset requirements. |
| disableCacheReprocessingChangeDetection | Boolean | No | Disables cache reprocessing change detection. |
You can add these to a request with RequestOptions#addQueryParam
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
createOrUpdateSkillset
public SearchIndexerSkillset createOrUpdateSkillset(SearchIndexerSkillset skillset)
Creates a new skillset in a search service or updates the skillset if it already exists.
Parameters:
Returns:
createOrUpdateSkillsetWithResponse
public Response<SearchIndexerSkillset> createOrUpdateSkillsetWithResponse(SearchIndexerSkillset skillset, RequestOptions requestOptions)
Creates a new skillset in a search service or updates the skillset if it already exists.
Query Parameters
| --------------------------------------- | ------- | -------- | --------------------------------------------- |
| Name | Type | Required | Description |
| ignoreResetRequirements | Boolean | No | Ignores cache reset requirements. |
| disableCacheReprocessingChangeDetection | Boolean | No | Disables cache reprocessing change detection. |
You can add these to a request with RequestOptions#addQueryParam
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
createSkillset
public SearchIndexerSkillset createSkillset(SearchIndexerSkillset skillset)
Creates a new skillset in a search service.
Parameters:
Returns:
createSkillsetWithResponse
public Response<SearchIndexerSkillset> createSkillsetWithResponse(SearchIndexerSkillset skillset, RequestOptions requestOptions)
Creates a new skillset in a search service.
Parameters:
Returns:
deleteDataSourceConnection
public void deleteDataSourceConnection(String name)
Deletes a datasource.
Parameters:
deleteDataSourceConnection
public void deleteDataSourceConnection(String name, MatchConditions matchConditions)
Deletes a datasource.
Parameters:
deleteDataSourceConnectionWithResponse
public Response<Void> deleteDataSourceConnectionWithResponse(String name, RequestOptions requestOptions)
Deletes a datasource.
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
deleteIndexer
public void deleteIndexer(String name)
Deletes an indexer.
Parameters:
deleteIndexer
public void deleteIndexer(String name, MatchConditions matchConditions)
Deletes an indexer.
Parameters:
deleteIndexerWithResponse
public Response<Void> deleteIndexerWithResponse(String name, RequestOptions requestOptions)
Deletes an indexer.
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
deleteSkillset
public void deleteSkillset(String name)
Deletes a skillset in a search service.
Parameters:
deleteSkillset
public void deleteSkillset(String name, MatchConditions matchConditions)
Deletes a skillset in a search service.
Parameters:
deleteSkillsetWithResponse
public Response<Void> deleteSkillsetWithResponse(String name, RequestOptions requestOptions)
Deletes a skillset in a search service.
Header Parameters
| ------------- | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------ |
| Name | Type | Required | Description |
| If-Match | String | No | Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value. |
| If-None-Match | String | No | Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value. |
You can add these to a request with RequestOptions#addHeader
Parameters:
Returns:
getDataSourceConnection
public SearchIndexerDataSourceConnection getDataSourceConnection(String name)
Retrieves a datasource definition.
Parameters:
Returns:
getDataSourceConnectionWithResponse
public Response<SearchIndexerDataSourceConnection> getDataSourceConnectionWithResponse(String name, RequestOptions requestOptions)
Retrieves a datasource definition.
Parameters:
Returns:
getEndpoint
public String getEndpoint()
Gets the endpoint used to communicate with the Azure AI Search service.
Returns:
getIndexer
public SearchIndexer getIndexer(String name)
Retrieves an indexer definition.
Parameters:
Returns:
getIndexerStatus
public SearchIndexerStatus getIndexerStatus(String name)
Returns the current status and execution history of an indexer.
Parameters:
Returns:
getIndexerStatusWithResponse
public Response<SearchIndexerStatus> getIndexerStatusWithResponse(String name, RequestOptions requestOptions)
Returns the current status and execution history of an indexer.
Parameters:
Returns:
getIndexerWithResponse
public Response<SearchIndexer> getIndexerWithResponse(String name, RequestOptions requestOptions)
Retrieves an indexer definition.
Parameters:
Returns:
getServiceVersion
public SearchServiceVersion getServiceVersion()
Gets the SearchServiceVersion used to communicate with the Azure AI Search service.
Returns:
getSkillset
public SearchIndexerSkillset getSkillset(String name)
Retrieves a skillset in a search service.
Parameters:
Returns:
getSkillsetWithResponse
public Response<SearchIndexerSkillset> getSkillsetWithResponse(String name, RequestOptions requestOptions)
Retrieves a skillset in a search service.
Parameters:
Returns:
listDataSourceConnectionNames
public PagedIterable<String> listDataSourceConnectionNames()
Lists the names of all datasources available for a search service.
Returns:
listDataSourceConnections
public PagedIterable<SearchIndexerDataSourceConnection> listDataSourceConnections()
Lists all datasources available for a search service.
Returns:
listIndexerNames
public PagedIterable<String> listIndexerNames()
Lists the names of all indexers available for a search service.
Returns:
listIndexers
public PagedIterable<SearchIndexer> listIndexers()
Lists all indexers available for a search service.
Returns:
listSkillsetNames
public PagedIterable<String> listSkillsetNames()
Lists the names of all skillsets in a search service.
Returns:
listSkillsets
public PagedIterable<SearchIndexerSkillset> listSkillsets()
List all skillsets in a search service.
Returns:
resetIndexer
public void resetIndexer(String name)
Resets the change tracking state associated with an indexer.
Parameters:
resetIndexerWithResponse
public Response<Void> resetIndexerWithResponse(String name, RequestOptions requestOptions)
Resets the change tracking state associated with an indexer.
Parameters:
Returns:
runIndexer
public void runIndexer(String name)
Runs an indexer on-demand.
Parameters:
runIndexerWithResponse
public Response<Void> runIndexerWithResponse(String name, RequestOptions requestOptions)
Runs an indexer on-demand.
Parameters:
Returns: