Skip to content

MappedFieldType.rangeQuery should rewrite to an exists query when both bounds are open #22640

@jpountz

Description

@jpountz

Queries that have both bounds open can be generated even if the user passed explicit bounds due to query rewriting. Unfortunately, queries that have both bounds open are still costly to execute, so we should look into using exists queries instead (or even match_all queries if all docs have a value for the field).

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