lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej Bialecki ...@getopt.org>
Subject Re: Field creation with TokenStream and stored value
Date Wed, 13 Jan 2010 14:40:48 GMT
On 2010-01-13 15:29, Benjamin Heilbrunn wrote:
> Thanks!
> Didn't know that it's so easy ;)
>
> 2010/1/13 Uwe Schindler<uwe@thetaphi.de>:
>> Why not simply add the field twice, one time with TokenStream, one time stored only?
Internally stored/indexed fields are handled like that.

Actually, you can implement your own Fieldable, and return what you want 
from its methods. You can also use Field constructor that takes the 
stored value, and then use Field.setTokenStream(TokenStream) - it 
doesn't override the stored value.


-- 
Best regards,
Andrzej Bialecki     <><
  ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com


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


Mime
View raw message