Closed Bukhtawar closed 3 years ago
This is my workaround for my use case:
create action group: curl -XPUT "https://elasticsearch-host:9200/_opendistro/_security/api/actiongroups/async_fix_action_group" -H 'Content-Type: application/json' -d'{ "allowed_actions": [ "indices:data/read/async_search/submit", "indices:data/read/async_search/submit", "indices:data/read/async_search/delete", "indices:data/read/async_search/delete", "indices:data/read/async_search/get", "indices:data/read/async_search/get*" ]}'
Add to role action group.
Overview
Occasionally business would like to run queries on vast amount of data that can take very long to return results.
Asynchronous search makes it possible for users to run such queries without worrying about the query timing out. These queries run in the background, and users can track the progress, and retrieve results as they become available.
The asynchronous search API let you asynchronously execute a search request, monitor its progress, and retrieve partial results as they become available.
Key User Stories
RFC for asynchronous search :
RFC Asynchronous Search with Elasticsearch.pdf