LuXugang commented on pull request #705: URL: https://github.com/apache/lucene/pull/705#issuecomment-1049639011
> We need two cases: > > * Checking whether all documents match and returning values.getDocCount(). This works when there are no deletions. > * Actually counting the number of matching points. This only works when there are no deletions and the field is single-valued (docCount == size), plus we only want to apply it in the 1D case since this is the only case when we have the guarantee that it will actually run fast since there are at most 2 crossing leaves. Thanks @jpountz, now I fully understand your thought. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org