Re: Copy and augment an indexed Document

2010-01-03 Thread Karl Wettin
31 dec 2009 kl. 02.19 skrev Erick Erickson: It is possible to reconstruct a document from the terms, but it's a lossy process. Luke does this (you can see from the UI, and the code is available). There's no utility that I know of to make this easy. http://svn.apache.org/repos/asf/lucene/java/

Re: Copy and augment an indexed Document

2009-12-30 Thread tsuraan
> It's an open question whether this is more or less work than > re-parsing the document (I infer that you have the originals > available). Before trying to reconstruct the document I'd > ask how often you need to do this. The gremlins coming out > of the woodwork from reconstruction would consume

Re: Copy and augment an indexed Document

2009-12-30 Thread Erick Erickson
It is possible to reconstruct a document from the terms, but it's a lossy process. Luke does this (you can see from the UI, and the code is available). There's no utility that I know of to make this easy. It's an open question whether this is more or less work than re-parsing the document (I infer

Re: Copy and augment an indexed Document

2009-12-30 Thread Grant Ingersoll
On Dec 30, 2009, at 5:08 PM, tsuraan wrote: > Suppose I have a (useful) document stored in a Lucene index, and I > have a variant that I'd also like to be able to search. This variant > has the exact same data as the original document, but with some extra > fields. I'd like to be able to use an

Copy and augment an indexed Document

2009-12-30 Thread tsuraan
Suppose I have a (useful) document stored in a Lucene index, and I have a variant that I'd also like to be able to search. This variant has the exact same data as the original document, but with some extra fields. I'd like to be able to use an IndexReader to get the document that I stored, use th