You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ravi <ra...@htinc.com> on 2004/12/09 19:35:08 UTC

Retrieving all docs in the index

 Is there any other way to extract all documents from an index apart
from adding an additional field with the same value to all documents and
then doing a term query on that field with the common value?

Thanks in advance,
Ravi. 

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


Re: Retrieving all docs in the index

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Dec 9, 2004, at 1:35 PM, Ravi wrote:
>  Is there any other way to extract all documents from an index apart
> from adding an additional field with the same value to all documents 
> and
> then doing a term query on that field with the common value?

Of course.  Have a look at the IndexReader API.

	Erik


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