You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/11/30 10:01:00 UTC
[jira] [Commented] (LUCENE-10263) Implement Weight#count() on NormsFieldExistsQuery
[ https://issues.apache.org/jira/browse/LUCENE-10263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17451003#comment-17451003 ]
ASF subversion and git services commented on LUCENE-10263:
----------------------------------------------------------
Commit 749b744c0c2fcc5de709c3b48fa8ef802af010f4 in lucene's branch refs/heads/main from Alan Woodward
[ https://gitbox.apache.org/repos/asf?p=lucene.git;h=749b744 ]
LUCENE-10263: Implement Weight.count() on NormsFieldExistsQuery (#477)
If all documents in the segment have a value, then `Reader.getDocCount()` will
equal `maxDoc` and we can return `numDocs` as a shortcut.
> Implement Weight#count() on NormsFieldExistsQuery
> -------------------------------------------------
>
> Key: LUCENE-10263
> URL: https://issues.apache.org/jira/browse/LUCENE-10263
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Major
> Time Spent: 2h 10m
> Remaining Estimate: 0h
>
> Similar to LUCENE-10085, we can quickly get a count of documents that have a text field present by reading docCount() from the field's Terms instance if there are no deleted documents.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org