lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Muir (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3559) remove IndexSearcher.docFreq/maxDoc
Date Thu, 03 Nov 2011 13:59:33 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-3559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Muir updated LUCENE-3559:
--------------------------------

    Attachment: LUCENE-3559.patch

Patch: in lucene this was only called by things like tests for the most part.

The spellchecker used docFreq as an existence check: I added a TODO here as there are better/faster
ways to do this trunk with seekExact.

Solr uses this as a convenience method everywhere, so I put these methods on SolrIndexSearcher
but made them final so there is no trap.
                
> remove IndexSearcher.docFreq/maxDoc
> -----------------------------------
>
>                 Key: LUCENE-3559
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3559
>             Project: Lucene - Java
>          Issue Type: Improvement
>            Reporter: Robert Muir
>            Assignee: Robert Muir
>             Fix For: 4.0
>
>         Attachments: LUCENE-3559.patch
>
>
> As pointed out by Mark on SOLR-1632, these are no longer used by the scoring system.
> We've added new stats to Lucene, so having these methods on indexsearcher makes no sense.
> Its confusing to people upgrading if they subclassed IndexSearcher to provide distributed
stats,
> only to find these are not used (LUCENE-3555 has a correct API for them to do this).
> So I think we should remove these in 4.0.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message