Share via


Indexers - Run

視需要執行索引器。

POST {endpoint}/indexers('{indexerName}')/search.run?api-version=2023-10-01-Preview

URI 參數

名稱 位於 必要 類型 Description
endpoint
path True

string

搜尋服務的端點 URL。

indexerName
path True

string

要執行的索引子名稱。

api-version
query True

string

用戶端 API 版本。

要求標頭

名稱 必要 類型 Description
x-ms-client-request-id

string

uuid

使用要求傳送的追蹤標識碼,以協助偵錯。

回應

名稱 類型 Description
202 Accepted
Other Status Codes

SearchError

錯誤回應。

範例

SearchServiceRunIndexer

Sample Request

POST https://myservice.search.windows.net/indexers('myindexer')/search.run?api-version=2023-10-01-Preview

Sample Response

定義

SearchError

描述 API 的錯誤狀況。

名稱 類型 Description
code

string

其中一組伺服器定義的錯誤碼。

details

SearchError[]

導致此錯誤之特定錯誤的詳細數據陣列。

message

string

人類可讀取的錯誤表示法。