Retrieve all documents - possible?

2005-02-07 Thread Karl Koch
Hi, is it possible to retrieve ALL documents from a Lucene index? This should then actually not be a search... Karl -- Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

Re: Retrieve all documents - possible?

2005-02-07 Thread Bernhard Messer
you could use something like: int maxDoc = reader.maxDoc(); for (int i = 0; i maxDoc; i++) { Document doc = reader.document(i); } Bernhard Hi, is it possible to retrieve ALL documents from a Lucene index? This should then actually not be a search... Karl

Re: Retrieve all documents - possible?

2005-02-07 Thread Kelvin Tan
Don't forget to test if a document is deleted with reader.isDeleted(i) On Mon, 07 Feb 2005 12:09:35 +0100, Bernhard Messer wrote:  you could use something like:  int maxDoc = reader.maxDoc();  for (int i = 0; i  maxDoc; i++) {  Document doc = reader.document(i);  }  Bernhard  Hi,  is it

Re: Retrieve all documents - possible?

2005-02-07 Thread Andrzej Bialecki
Karl Koch wrote: Hi, is it possible to retrieve ALL documents from a Lucene index? This should then actually not be a search... You are right. Just use the IndexReader.document(int). -- Best regards, Andrzej Bialecki ___. ___ ___ ___ _ _ __ [__ || __|__/|__||\/|