Skip to content

Conversation

LuXugang
Copy link
Member

When constructing TermStats, if a segment does not contain the target field, we don’t need to return an empty Term, because in the second loop the corresponding prepareSeekExact method will always return false

Copy link
Contributor

This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.

Comment on lines +105 to +107
if (terms == null) {
continue;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we can instead keep the original and check for terms == EMPTY. Although, both read okay to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants