lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nadav Har'El (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LUCENE-322) [PATCH] Add IndexSearcher.numDocs() method
Date Mon, 10 Apr 2006 12:33:00 GMT
    [ http://issues.apache.org/jira/browse/LUCENE-322?page=comments#action_12373849 ] 

Nadav Har'El commented on LUCENE-322:
-------------------------------------

I wonder, is this change at all necessary? After all, we have the IndexSearcher().getIndexReader()
function, which returns the IndexReader and you can do with it whatever you want, which is
basically to do
      is.getIndexReader().numDocs()

or am I missing something?

If not, this bug should be closed, I think.

> [PATCH] Add IndexSearcher.numDocs() method
> ------------------------------------------
>
>          Key: LUCENE-322
>          URL: http://issues.apache.org/jira/browse/LUCENE-322
>      Project: Lucene - Java
>         Type: Improvement

>   Components: Search
>     Versions: 1.4
>  Environment: Operating System: All
> Platform: All
>     Reporter: Alexey Panchenko
>     Assignee: Lucene Developers
>     Priority: Minor
>  Attachments: IndexSearcher_numDocs.patch
>
> It is convenient method to return number of documents in the index thru
> available IndexSearcher object. Probably this method should be also introduced
> in org.apache.lucene.search.Searchable, but this changes more files and at the
> moment  I need it only in IndexSearcher.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


Mime
View raw message