Skip to content

Chain multiple search requests to pass results from the first query to a subsequent query #27315

@dougnelas

Description

@dougnelas

It would be very useful to be able to chain search queries together in such a way that results from the first query could be used in the second query. For example, let's say I construct the first query to return a list of ids, terms, etc. and then be able to have these results passed to the second query, for example the list of ids could be used to return the documents that matched the ids from the first. Today, this requires intervention from a client within the application code and results in having to make multiple search requests to obtain the final result. Let's say for example I have a separate index for attributes. I can search the index to find a list of attributeIds. I could then use this list of ids in a filter against another index to return items which have this attribute associations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search/SearchSearch-related issues that do not fall into other categories

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions