lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miles Barr <mi...@runtime-collective.com>
Subject Re: how to get stored fields
Date Fri, 18 Feb 2005 12:28:53 GMT
On Fri, 2005-02-18 at 04:38 +0100, Miro Max wrote:
> i'm indexing my content as unstored fiels. now i want
> to get this fields matching to the query and copy it
> to a new index.
> 
> do i have to reconstruct this content or can i copy
> this content as field to a new index -->
> 
> Field f = hits.doc(i).getField("content");
> d.add(f);


You'll have to recreate the field from the original content. The above
method will produce a blank field in the new document if "content" is
UnStored.



-- 
Miles Barr <miles@runtime-collective.com>
Runtime Collective Ltd.


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