SearchServiceClient (preview:2016-09-01)

2025/12/05 • 20 new methods

DataSources_CreateOrUpdate (new)
Description Creates a new Azure Search datasource or updates a datasource if it already exists.
Reference Link ¶

⚼ Request

PUT:  /datasources('{dataSourceName}')
{
dataSourceName: string ,
dataSource:
{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}

⚐ Response (201)

{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
DataSources_Delete (new)
Description Deletes an Azure Search datasource.
Reference Link ¶

⚼ Request

DELETE:  /datasources('{dataSourceName}')
{
dataSourceName: string ,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (404)

{}
DataSources_Get (new)
Description Retrieves a datasource definition from Azure Search.
Reference Link ¶

⚼ Request

GET:  /datasources('{dataSourceName}')
{
dataSourceName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
DataSources_List (new)
Description Lists all datasources available for an Azure Search service.
Reference Link ¶

⚼ Request

GET:  /datasources
{
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
,
]
,
}
DataSources_Create (new)
Description Creates a new Azure Search datasource.
Reference Link ¶

⚼ Request

POST:  /datasources
{
dataSource:
{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
,
client-request-id: string ,
api-version: string ,
}

⚐ Response (201)

{
name: string ,
description: string ,
type:
{
name: string ,
}
,
credentials:
{
connectionString: string ,
}
,
container:
{
name: string ,
query: string ,
}
,
dataChangeDetectionPolicy:
{
@odata.type: string ,
}
,
dataDeletionDetectionPolicy:
{
@odata.type: string ,
}
,
@odata.etag: string ,
}
Indexers_Reset (new)
Description Resets the change tracking state associated with an Azure Search indexer.
Reference Link ¶

⚼ Request

POST:  /indexers('{indexerName}')/search.reset
{
indexerName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (204)

{}
Indexers_Run (new)
Description Runs an Azure Search indexer on-demand.
Reference Link ¶

⚼ Request

POST:  /indexers('{indexerName}')/search.run
{
indexerName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (202)

{}
Indexers_CreateOrUpdate (new)
Description Creates a new Azure Search indexer or updates an indexer if it already exists.
Reference Link ¶

⚼ Request

PUT:  /indexers('{indexerName}')
{
indexerName: string ,
indexer:
{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (201)

{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
Indexers_Delete (new)
Description Deletes an Azure Search indexer.
Reference Link ¶

⚼ Request

DELETE:  /indexers('{indexerName}')
{
indexerName: string ,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (404)

{}

⚐ Response (204)

{}
Indexers_Get (new)
Description Retrieves an indexer definition from Azure Search.
Reference Link ¶

⚼ Request

GET:  /indexers('{indexerName}')
{
indexerName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
Indexers_List (new)
Description Lists all indexers available for an Azure Search service.
Reference Link ¶

⚼ Request

GET:  /indexers
{
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
,
]
,
}
Indexers_Create (new)
Description Creates a new Azure Search indexer.
Reference Link ¶

⚼ Request

POST:  /indexers
{
indexer:
{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
,
client-request-id: string ,
api-version: string ,
}

⚐ Response (201)

{
name: string ,
description: string ,
dataSourceName: string ,
targetIndexName: string ,
schedule:
{
interval: string ,
startTime: string ,
}
,
parameters:
{
batchSize: integer ,
maxFailedItems: integer ,
maxFailedItemsPerBatch: integer ,
base64EncodeKeys: boolean ,
configuration: object ,
}
,
fieldMappings:
[
{
sourceFieldName: string ,
targetFieldName: string ,
mappingFunction:
{
name: string ,
parameters: object ,
}
,
}
,
]
,
disabled: boolean ,
@odata.etag: string ,
}
Indexers_GetStatus (new)
Description Returns the current status and execution history of an indexer.
Reference Link ¶

⚼ Request

GET:  /indexers('{indexerName}')/search.status
{
indexerName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
status: enum ,
lastResult:
{
status: enum ,
errorMessage: string ,
startTime: string ,
endTime: string ,
errors:
[
{
key: string ,
errorMessage: string ,
}
,
]
,
itemsProcessed: integer ,
itemsFailed: integer ,
initialTrackingState: string ,
finalTrackingState: string ,
}
,
executionHistory:
[
{
status: enum ,
errorMessage: string ,
startTime: string ,
endTime: string ,
errors:
[
{
key: string ,
errorMessage: string ,
}
,
]
,
itemsProcessed: integer ,
itemsFailed: integer ,
initialTrackingState: string ,
finalTrackingState: string ,
}
,
]
,
}
Indexes_Create (new)
Description Creates a new Azure Search index.
Reference Link ¶

⚼ Request

POST:  /indexes
{
index:
{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
,
client-request-id: string ,
api-version: string ,
}

⚐ Response (201)

{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
Indexes_List (new)
Description Lists all indexes available for an Azure Search service.
Reference Link ¶

⚼ Request

GET:  /indexes
{
$select: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
,
]
,
}
Indexes_CreateOrUpdate (new)
Description Creates a new Azure Search index or updates an index if it already exists.
Reference Link ¶

⚼ Request

PUT:  /indexes('{indexName}')
{
indexName: string ,
index:
{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
,
allowIndexDowntime: boolean ,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}

⚐ Response (201)

{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
Indexes_Delete (new)
Description Deletes an Azure Search index and all the documents it contains.
Reference Link ¶

⚼ Request

DELETE:  /indexes('{indexName}')
{
indexName: string ,
client-request-id: string ,
If-Match: string ,
If-None-Match: string ,
api-version: string ,
}

⚐ Response (204)

{}

⚐ Response (404)

{}
Indexes_Get (new)
Description Retrieves an index definition from Azure Search.
Reference Link ¶

⚼ Request

GET:  /indexes('{indexName}')
{
indexName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
name: string ,
fields:
[
{
name: string ,
type:
{
name: string ,
}
,
analyzer:
{
name: string ,
}
,
searchAnalyzer:
{
name: string ,
}
,
indexAnalyzer:
{
name: string ,
}
,
key: boolean ,
searchable: boolean ,
filterable: boolean ,
sortable: boolean ,
facetable: boolean ,
retrievable: boolean ,
}
,
]
,
scoringProfiles:
[
{
name: string ,
text:
{
weights: object ,
}
,
functions:
[
{
type: string ,
fieldName: string ,
boost: number ,
interpolation: enum ,
}
,
]
,
functionAggregation: enum ,
}
,
]
,
defaultScoringProfile: string ,
corsOptions:
{
allowedOrigins:
[
string ,
]
,
maxAgeInSeconds: integer ,
}
,
suggesters:
[
{
name: string ,
searchMode: enum ,
sourceFields:
[
string ,
]
,
}
,
]
,
analyzers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenizers:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
tokenFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
charFilters:
[
{
@odata.type: string ,
name: string ,
}
,
]
,
@odata.etag: string ,
}
Indexes_GetStatistics (new)
Description Returns statistics for the given index, including a document count and storage usage.
Reference Link ¶

⚼ Request

GET:  /indexes('{indexName}')/search.stats
{
indexName: string ,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
documentCount: integer ,
storageSize: integer ,
}
Indexes_Analyze (new)
Description Shows how an analyzer breaks text into tokens.
Reference Link ¶

⚼ Request

POST:  /indexes('{indexName}')/search.analyze
{
indexName: string ,
request:
{
text: string ,
analyzer:
{
name: string ,
}
,
tokenizer:
{
name: string ,
}
,
tokenFilters:
[
{
name: string ,
}
,
]
,
charFilters:
[
{
name: string ,
}
,
]
,
}
,
client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
tokens:
[
{
token: string ,
startOffset: integer ,
endOffset: integer ,
position: integer ,
}
,
]
,
}