Skip to content

PagingFieldCollector is not able to skip documents for searchAfter value for which no competitive hits are present. #12333

@gashutos

Description

@gashutos

Description

If we specify after value for PagingFieldCollector which is out of min/max values for that field in that segment, PagingFieldCollector is not able to update its competitiveIterator because queueFull is never able to set to true.
Code ref - NumericComparator.java$194

Due to this, it will spend lot of time comparing large number of hits here TopFieldCollector.java#264.
Instead it is supposed to short cut right away.

Version and environment details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions