Delen via


Documents - Count

Hiermee wordt het aantal documenten in de index opgevraagd.

GET {endpoint}/indexes('{indexName}')/docs/$count?api-version=2024-09-01-preview

URI-parameters

Name In Vereist Type Description
endpoint
path True

string

De eindpunt-URL van de zoekservice.

indexName
path True

string

De naam van de index.

api-version
query True

string

Client-API-versie.

Aanvraagkoptekst

Name Vereist Type Description
x-ms-client-request-id

string

uuid

De tracerings-id die is verzonden met de aanvraag om hulp te bieden bij foutopsporing.

Antwoorden

Name Type Description
200 OK

integer

Other Status Codes

ErrorResponse

Foutreactie.

Voorbeelden

SearchIndexCountDocuments

Voorbeeldaanvraag

GET https://previewexampleservice.search.windows.net/indexes('preview-test')/docs/$count?api-version=2024-09-01-preview

Voorbeeldrespons

50

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.