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
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
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'.