[ https://issues.apache.org/jira/browse/LUCENE-6711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14652160#comment-14652160 ]
Hoss Man commented on LUCENE-6711: ---------------------------------- bq. I also think its best to just make the change for trunk and not do it in a minor version. +1 This is the sort of behavior change that should be noted in MIGRATE.txt -- Ahmet: could you take a stab at adding the necessary text in your patch? > 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 > Priority: Minor > Fix For: Trunk > > Attachments: 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org