[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to