Files
elasticsearch-js/docs/reference/api/AsyncSearch.md
2025-05-27 15:30:21 -05:00

6.3 KiB

AsyncSearch

Constructor

::: new AsyncSearch(transport: Transport); :::

Properties

Name Type Description
acceptedParams Record<string, { path: string[]; body: string[]; query: string[]; }>  
transport Transport  

Methods

Name Signature Description
delete delete(this: [That](./That.md), params: [AsyncSearchDeleteRequest](./AsyncSearchDeleteRequest.md), options?: [TransportRequestOptionsWithOutMeta](./TransportRequestOptionsWithOutMeta.md)): Promise<[AsyncSearchDeleteResponse](./AsyncSearchDeleteResponse.md)>; Delete an async search. If the asynchronous search is still running, it is cancelled. Otherwise, the saved search results are deleted. If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the cancel_task cluster privilege.