On 2/16/07, Brian Whitman <[EMAIL PROTECTED]> wrote:
Using the lucene API, is there a way to copy the contents and
parameters of fields between documents in different indexes? Without
requiring the field to be stored or needing to pass around the
fulltext contents of the field.
I guess I am looking for
doc.add(new Field("contentsNew", copyFrom(originalDoc, "contents")));
where doc and originalDoc are from different indexes.
Not really... it's the nature of an inverted index.
Going from term to list-of-documents is easy, but going from document
to all-term-info isn't.
The closest you would be able to get is storing term vectors for all
the indexed fields, then using those term vectors to re-index in the
second index.
-Yonik
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]