lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (JIRA)" <j...@apache.org>
Subject [jira] Created: (SOLR-1225) improve LukeRequestHandler docCount calculation
Date Tue, 16 Jun 2009 20:59:07 GMT
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.


Mime
View raw message