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
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.