Re: getting all Lucene internal IDs

2009-06-19 Thread Michael McCandless
You're welcome! Mike On Fri, Jun 19, 2009 at 1:49 PM, Dmitry Lizorkin wrote: >> Iterate over all ints from 0 .. IndexReader.maxDoc() (exclusive) and >> call IndexReader.isDeleted? > > Excellent, works perfect for us! > > Michael, thank you very much for your help! > > Best regards, >  Dmitry > >

Re: getting all Lucene internal IDs

2009-06-19 Thread Dmitry Lizorkin
Iterate over all ints from 0 .. IndexReader.maxDoc() (exclusive) and call IndexReader.isDeleted? Excellent, works perfect for us! Michael, thank you very much for your help! Best regards, Dmitry - To unsubscribe, e-mail: ja

Re: getting all Lucene internal IDs

2009-06-19 Thread Michael McCandless
On Fri, Jun 19, 2009 at 12:43 PM, Dmitry Lizorkin wrote: > In the meantime, does there exist any workaround for the current version > 2.4.1 we're using? Iterate over all ints from 0 .. IndexReader.maxDoc() (exclusive) and call IndexReader.isDeleted? Open a read-only IndexReader if possible, so i

Re: getting all Lucene internal IDs

2009-06-19 Thread Dmitry Lizorkin
Assuming your goal is to exclude deleted docs Yes, precisely. TermDocs td = IndexReader.termDocs(null); That looks exactly what we need! We'll be looking forward to the release of v. 2.9. In the meantime, does there exist any workaround for the current version 2.4.1 we're using? Thank

Re: getting all Lucene internal IDs

2009-06-19 Thread Michael McCandless
Assuming your goal is to exclude deleted docs, in 2.9 (not yet released) you can do this: TermDocs td = IndexReader.termDocs(null); and then iterate through them. Mike 2009/6/19 Dmitry Lizorkin : > Hello! > > What is the appropriate way to obtain Lucene internal IDs for _all_ the > tuples sto

getting all Lucene internal IDs

2009-06-19 Thread Dmitry Lizorkin
Hello! What is the appropriate way to obtain Lucene internal IDs for _all_ the tuples stored in a Lucene index? Thank you for your help Dmitry - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional