You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2009/06/16 22:59:07 UTC

[jira] Created: (SOLR-1225) improve LukeRequestHandler docCount calculation

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.


[jira] Resolved: (SOLR-1225) improve LukeRequestHandler docCount calculation

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1225?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley resolved SOLR-1225.
---------------------------------

    Resolution: Fixed

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


[jira] Updated: (SOLR-1225) improve LukeRequestHandler docCount calculation

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ 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.