Skip to content

Add sub_searches to the search endpoint #2162

@ezimuel

Description

@ezimuel

The sub_searches field has been recently added in the search API for Elasticsearch.

🐛 Missing type

The sub_searches parameter in the body for the search API.

Definition

A new top-level element to the search endpoint called sub_searches. This top-level element allows for a list of additional searches where each "sub search" will have a query executed separately as part of ranking and later combined into a final single set of documents based on the ranking algorithm.

The sub_searches element is used instead of query (and they may not be used together) to allow a search using ranking to execute multiple queries.

For more information have a look at this PR.

cc @jdconrad

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions