lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject Re: moving documents from one index to another?
Date Thu, 20 Nov 2003 13:08:08 GMT

On Nov 20, 2003, at 13:45, Eric Jain wrote:

> If the document contains unstored fields, the only way to reconstruct
> the document is by iterating through all terms in the index and picking
> out those that reference the document.

Hmmm... how would you do that? Something along the lines of 
aReader.terms() and then for each Term use aReader.termDocs() to try to 
figure out which document it belongs to? Something else altogether? How 
do you move the doc/terms to the other index then?

>  This is likely to be to
> inefficient for any practical purposes...

That's ok :)

Alternatively, would it be possible to use FieldsReader/FieldsWriter or 
such to move the raw data from one index to the other without ill side 
effects?

TIA.

Cheers,

PA.


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message