(n00b) Meaning of Hits.id (int)

2004-09-09 Thread Peter Pimley
Hello everyone. I'm in the process of writing my first lucene app, and I've got to the bit where I get my search results back (very exciting! ;). My documents are not stored in their original form by lucene, but in a seperate database. My lucene docs do however store the primary key, so that

Re: (n00b) Meaning of Hits.id (int)

2004-09-09 Thread Morus Walter
Peter Pimley writes: My documents are not stored in their original form by lucene, but in a seperate database. My lucene docs do however store the primary key, so that I can fetch the original version from the database to show the user (does that sound sane?) yes. I see that the

Re: (n00b) Meaning of Hits.id (int)

2004-09-09 Thread Peter Pimley
Oh, it's that simple. :) Thanks for that! Peter Morus Walter wrote: It's lucenes internal id or document number which allows you to access the document and its stored fields. See IndexSearcher.doc(int i) or IndexReader.document(int n) The docs just don't name the parameter 'id'.