Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve percolate query performance by not verifying certain candidate matches #18696
We can skip the MemoryIndex verification for candidate matches that we know upfront are always an actual match and we don't care about scores (so
At index time during query term extraction we store in a numeric docvalues field wether this candidate match is verified. So if during pre selecting this query matches we check if this doc values field is set and if so report it as a match.
A number queries that can skip MemoryIndex verification step: