Skip to content

[Search] Are isRunning / isRestored properties necessary? #183964

Open
@thomasneirynck

Description

Kibana version:

8.15/main

Description

When a search has not completed, the polling result of an async searches always include following properties:

{
  "id": "FnBTVzZRVkpZUjI2dVluN2RCQ2RwbFEdN0huQmtVZ1BUYmlISU9QQ0Rza0lMQTo4ODU0Mzg=",
  "rawResponse": {},
  "isPartial": true,
  "isRunning": true,
  "isRestored": true
}

It does not seem we are using isRunning and isRestored on the client (ie. in the browser). Is this a correct reading?

If so, we should remove. With the removal of bsearch, we are generating more of these polls and a good chunk of the response does not seem necessary. The values are flagged as optionally already (

/**
* Indicates whether the results returned are complete or partial
*/
isPartial?: boolean;
/**
* Indicates whether the results returned are from the async-search index
*/
isRestored?: boolean;
).

Metadata

Assignees

Labels

Team:DataDiscoveryDiscover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL.choreloe:smallSmall Level of Effortperformance

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions