Skip to content

Async Search Status return expired #66114

@mayya-sharipova

Description

@mayya-sharipova

When async search is expired we return NOT found 404 even if it still available in task manager or .async-search index.

Kibana team requested if it would be possible instead to return expired status in this case.
For example, a response can be:

{
  "id" : <id>,
  "is_expired" : true,
  "is_running" : false,
  "is_partial" : true,
  "start_time_in_millis" : 1583945890986,
  "expiration_time_in_millis" : 1584377890986,
  "_shards" : {
      "total" : 562,
      "successful" : 188,
      "skipped" : 0,
      "failed" : 0
  }
}

Related to: #62947

cc: @lizozom

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories>enhancementTeam:SearchMeta label for search team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions