lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6711) Instead of docCount(), maxDoc() is used for numberOfDocuments in SimilarityBase
Date Thu, 13 Aug 2015 17:37:46 GMT

    [ https://issues.apache.org/jira/browse/LUCENE-6711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14695631#comment-14695631
] 

ASF subversion and git services commented on LUCENE-6711:
---------------------------------------------------------

Commit 1695744 from [~rcmuir] in branch 'dev/trunk'
[ https://svn.apache.org/r1695744 ]

LUCENE-6711: Use CollectionStatistics.docCount() for IDF and average field length computations

> Instead of docCount(), maxDoc() is used for numberOfDocuments in SimilarityBase
> -------------------------------------------------------------------------------
>
>                 Key: LUCENE-6711
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6711
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>            Reporter: Ahmet Arslan
>            Assignee: Robert Muir
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: LUCENE-6711.patch, LUCENE-6711.patch, LUCENE-6711.patch, LUCENE-6711.patch
>
>
> {{SimilarityBase.java}} has the following line :
> {code}
>  long numberOfDocuments = collectionStats.maxDoc();
> {code}
> It seems like {{collectionStats.docCount()}}, which returns the total number of documents
that have at least one term for this field, is more appropriate statistics here. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message