[
https://issues.apache.org/jira/browse/SOLR-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ryan McKinley updated SOLR-1225:
--------------------------------
Attachment: SOLR-1225-luke.patch
since this is kinda trivial, i will commit shortly
> improve LukeRequestHandler docCount calculation
> -----------------------------------------------
>
> Key: SOLR-1225
> URL: https://issues.apache.org/jira/browse/SOLR-1225
> Project: Solr
> Issue Type: Improvement
> Components: search
> Reporter: Ryan McKinley
> Assignee: Ryan McKinley
> Fix For: 1.4
>
> Attachments: SOLR-1225-luke.patch
>
>
> Currently the LukeRequestHandler is calling:
> int docCount = searcher.numDocs( q, matchAllDocs );
> followed by:
> DocList ds = searcher.getDocList( q, (Query)null, (Sort)null, 0, 1 );
> to get the doc count (and then the first doc returned)
> This can be replaced with:
> TopDocs top = searcher.search( q, 1 );
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.