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
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
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
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
___. ___ ___ ___ _ _ __
[__ || __|__/|__||\/|