Skip to content

Add Elasticsearch Style Collapse #5883

@stephenstubbs

Description

@stephenstubbs

Is your feature request related to a problem? Please describe.
I currently store documents with a version field in Quickwit. When I need to retrieve the latest version of documents in a query I have to use a bucket aggregation to get the ids and latest versions. Then query for these separately. This isn't very efficient.

Describe the solution you'd like
Ideally add Elasticsearch style collapse https://www.elastic.co/docs/reference/elasticsearch/rest-apis/collapse-search-results.

Describe alternatives you've considered
Allow pagination of aggregation although this wouldn't be as efficient as collapse. https://www.elastic.co/docs/reference/aggregations/search-aggregations-bucket-composite-aggregation

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions