Skip to content

optimize range request by transforming them to filters #4864

@trinity-1686a

Description

@trinity-1686a

when we have a query such as (+term_query +range_query), it may be more efficient to change that to some Filter(term_query, range_query), where Filter() would be a query which run the subquery it has as a first parameter, and asks the 2nd parameter whether that value should be emitted. This is especially true if the query is cheap, and filters a lot
This is based on observations that range_query over the timestamp field is more efficiently handled through filtering via collector, than through a boolean query inside the query AST.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions