lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: copying fields between documents in different indexes
Date Sun, 18 Feb 2007 03:10:30 GMT
On 2/16/07, Brian Whitman <> 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.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message