SearchIndexClient (preview:2023-07-01-Preview)

2025/12/05 • 9 new methods

Documents_Count (new)
Description Queries the number of documents in the index.
Reference Link ¶

⚼ Request

GET:  /docs/$count
{
x-ms-client-request-id: string ,
api-version: string ,
}

⚐ Response (200)

{
$schema: integer ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_SearchGet (new)
Description Searches for documents in the index.
Reference Link ¶

⚼ Request

GET:  /docs
{
search: string ,
$count: boolean ,
facet: array ,
$filter: string ,
highlight: array ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
$orderby: array ,
queryType: string ,
scoringParameter: array ,
scoringProfile: string ,
semanticConfiguration: string ,
semanticErrorHandling: string ,
semanticMaxWaitInMilliseconds: integer ,
debug: string ,
searchFields: array ,
queryLanguage: string ,
speller: string ,
answers: string ,
searchMode: string ,
scoringStatistics: string ,
sessionId: string ,
$select: array ,
$skip: integer ,
$top: integer ,
captions: string ,
semanticFields: array ,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
@odata.count: integer ,
@search.coverage: number ,
@search.facets: object ,
@search.answers:
[
{
score: number ,
key: string ,
text: string ,
highlights: string ,
}
,
]
,
@search.nextPageParameters:
{
count: boolean ,
facets:
[
string ,
]
,
filter: string ,
highlight: string ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
orderby: string ,
queryType: enum ,
scoringStatistics: enum ,
sessionId: string ,
scoringParameters:
[
string ,
]
,
scoringProfile: string ,
semanticConfiguration: string ,
semanticErrorHandling: enum ,
semanticMaxWaitInMilliseconds: integer ,
debug: enum ,
search: string ,
searchFields: string ,
searchMode: enum ,
queryLanguage: enum ,
speller: enum ,
answers: enum ,
select: string ,
skip: integer ,
top: integer ,
captions: enum ,
semanticFields: string ,
vector:
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
vectors:
[
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
]
,
}
,
@search.semanticPartialResponseReason: enum ,
@search.semanticPartialResponseType: enum ,
value:
[
{
@search.score: number ,
@search.rerankerScore: number ,
@search.highlights: object ,
@search.captions:
[
{
text: string ,
highlights: string ,
}
,
]
,
@search.documentDebugInfo:
[
{
semantic:
{
titleField:
{
name: string ,
state: enum ,
}
,
contentFields:
[
{
name: string ,
state: enum ,
}
,
]
,
keywordFields:
[
{
name: string ,
state: enum ,
}
,
]
,
rerankerInput:
{
title: string ,
content: string ,
keywords: string ,
}
,
}
,
}
,
]
,
}
,
]
,
@odata.nextLink: string ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_SearchPost (new)
Description Searches for documents in the index.
Reference Link ¶

⚼ Request

POST:  /docs/search.post.search
{
searchRequest:
{
count: boolean ,
facets:
[
string ,
]
,
filter: string ,
highlight: string ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
orderby: string ,
queryType: enum ,
scoringStatistics: enum ,
sessionId: string ,
scoringParameters:
[
string ,
]
,
scoringProfile: string ,
semanticConfiguration: string ,
semanticErrorHandling: enum ,
semanticMaxWaitInMilliseconds: integer ,
debug: enum ,
search: string ,
searchFields: string ,
searchMode: enum ,
queryLanguage: enum ,
speller: enum ,
answers: enum ,
select: string ,
skip: integer ,
top: integer ,
captions: enum ,
semanticFields: string ,
vector:
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
vectors:
[
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
]
,
}
,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
@odata.count: integer ,
@search.coverage: number ,
@search.facets: object ,
@search.answers:
[
{
score: number ,
key: string ,
text: string ,
highlights: string ,
}
,
]
,
@search.nextPageParameters:
{
count: boolean ,
facets:
[
string ,
]
,
filter: string ,
highlight: string ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
orderby: string ,
queryType: enum ,
scoringStatistics: enum ,
sessionId: string ,
scoringParameters:
[
string ,
]
,
scoringProfile: string ,
semanticConfiguration: string ,
semanticErrorHandling: enum ,
semanticMaxWaitInMilliseconds: integer ,
debug: enum ,
search: string ,
searchFields: string ,
searchMode: enum ,
queryLanguage: enum ,
speller: enum ,
answers: enum ,
select: string ,
skip: integer ,
top: integer ,
captions: enum ,
semanticFields: string ,
vector:
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
vectors:
[
{
value:
[
number ,
]
,
k: integer ,
fields: string ,
}
,
]
,
}
,
@search.semanticPartialResponseReason: enum ,
@search.semanticPartialResponseType: enum ,
value:
[
{
@search.score: number ,
@search.rerankerScore: number ,
@search.highlights: object ,
@search.captions:
[
{
text: string ,
highlights: string ,
}
,
]
,
@search.documentDebugInfo:
[
{
semantic:
{
titleField:
{
name: string ,
state: enum ,
}
,
contentFields:
[
{
name: string ,
state: enum ,
}
,
]
,
keywordFields:
[
{
name: string ,
state: enum ,
}
,
]
,
rerankerInput:
{
title: string ,
content: string ,
keywords: string ,
}
,
}
,
}
,
]
,
}
,
]
,
@odata.nextLink: string ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_Get (new)
Description Retrieves a document from the index.
Reference Link ¶

⚼ Request

GET:  /docs('{key}')
{
key: string ,
$select: array ,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
$schema: object ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_SuggestGet (new)
Description Suggests documents in the index that match the given partial query text.
Reference Link ¶

⚼ Request

GET:  /docs/search.suggest
{
search: string ,
suggesterName: string ,
$filter: string ,
fuzzy: boolean ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
$orderby: array ,
searchFields: array ,
$select: array ,
$top: integer ,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
value:
[
{
@search.text: string ,
}
,
]
,
@search.coverage: number ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_SuggestPost (new)
Description Suggests documents in the index that match the given partial query text.
Reference Link ¶

⚼ Request

POST:  /docs/search.post.suggest
{
suggestRequest:
{
filter: string ,
fuzzy: boolean ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
orderby: string ,
search: string ,
searchFields: string ,
select: string ,
suggesterName: string ,
top: integer ,
}
,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
value:
[
{
@search.text: string ,
}
,
]
,
@search.coverage: number ,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_Index (new)
Description Sends a batch of document write actions to the index.
Reference Link ¶

⚼ Request

POST:  /docs/search.index
{
batch:
{
value:
[
{
@search.action: enum ,
}
,
]
,
}
,
api-version: string ,
x-ms-client-request-id: string ,
}

⚐ Response (200)

{
value:
[
{
key: string ,
errorMessage: string ,
status: boolean ,
statusCode: integer ,
}
,
]
,
}

⚐ Response (207)

{
value:
[
{
key: string ,
errorMessage: string ,
status: boolean ,
statusCode: integer ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_AutocompleteGet (new)
Description Autocompletes incomplete query terms based on input text and matching terms in the index.
Reference Link ¶

⚼ Request

GET:  /docs/search.autocomplete
{
x-ms-client-request-id: string ,
api-version: string ,
search: string ,
suggesterName: string ,
autocompleteMode: string ,
$filter: string ,
fuzzy: boolean ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
searchFields: array ,
$top: integer ,
}

⚐ Response (200)

{
@search.coverage: number ,
value:
[
{
text: string ,
queryPlusText: string ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}
Documents_AutocompletePost (new)
Description Autocompletes incomplete query terms based on input text and matching terms in the index.
Reference Link ¶

⚼ Request

POST:  /docs/search.post.autocomplete
{
x-ms-client-request-id: string ,
api-version: string ,
autocompleteRequest:
{
search: string ,
autocompleteMode: enum ,
filter: string ,
fuzzy: boolean ,
highlightPostTag: string ,
highlightPreTag: string ,
minimumCoverage: number ,
searchFields: string ,
suggesterName: string ,
top: integer ,
}
,
}

⚐ Response (200)

{
@search.coverage: number ,
value:
[
{
text: string ,
queryPlusText: string ,
}
,
]
,
}

⚐ Response (default)

{
code: string ,
message: string ,
details:
[
string ,
]
,
}