RE: Read all the data from an index

2008-11-03 Thread Dragon Fly
Thank you both for your help. > Date: Fri, 31 Oct 2008 09:06:50 +0100 > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Re: Read all the data from an index > > Erick Erickson wrote: > > I'm not sure what *could* be easier than looping with Ind

Re: Read all the data from an index

2008-10-31 Thread Andrzej Bialecki
Erick Erickson wrote: I'm not sure what *could* be easier than looping with IndexSearcher.doc(), looping from 1 to maxDoc. Of course you'll have to pay some attention to whether you get a document back or not, and I'm not quite sure whether you'd have to worry about getting deleted documents. But

Re: Read all the data from an index

2008-10-30 Thread Erick Erickson
s there a faster way? > Thanks. > > > Date: Thu, 30 Oct 2008 16:09:47 -0400 > > From: [EMAIL PROTECTED] > > To: java-user@lucene.apache.org > > Subject: Re: Read all the data from an index > > > > Well, that's trickier than you might think. You can easi

RE: Read all the data from an index

2008-10-30 Thread Dragon Fly
I'll double check but I believe all the fields in my index are stored. Should I just loop using indexSearcher.doc() or is there a faster way? Thanks. > Date: Thu, 30 Oct 2008 16:09:47 -0400 > From: [EMAIL PROTECTED] > To: java-user@lucene.apache.org > Subject: Re: Read all

Re: Read all the data from an index

2008-10-30 Thread Erick Erickson
Well, that's trickier than you might think. You can easily get all the STORED data just by getting doc IDs 1-MaxDoc(). But reconstructing the data from data that is NOT stored is more difficult. Luke tries, but it may be a lossy process. Best Erick On Thu, Oct 30, 2008 at 3:24 PM, Dragon Fly <[EM

Read all the data from an index

2008-10-30 Thread Dragon Fly
Hi, I have an old index that was built a few months ago. The data that I used to build the index has been deleted from the database. I'd like to read all the data from the old index to build a new index. Which Lucene API calls should I use to read all the data from the old index? Thank you i