Skip to content

Apply the optimization to DocValuesFieldExistsQuery over the field (now deprecated in favor of FieldExistsQuery) #11652

@bowenlan-amzn

Description

@bowenlan-amzn

Coming from #11083 (comment)

When a range query's range covers the values of a shard, it will be rewritten into an ExistsQuery on the same field. For our optimization, we should be able to handle this situation and treat it same as the MatchAllDocsQuery case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

✅ Done

Status

Done

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions