lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <a...@flax.co.uk>
Subject Re: howto get LongPoint stored
Date Wed, 25 Oct 2017 10:17:16 GMT
Hi Bernd,

You add a separate StoredField with the same name.

> On 25 Oct 2017, at 11:11, Bernd Fehling <bernd.fehling@uni-bielefeld.de> wrote:
> 
> With Lucene 6.6.2 I'm trying to get a LongPoint value indexed and stored.
> 
> Old code:
> LegacyLongField dateField = new LegacyLongField("modified", lastModified, Field.Store.YES);
> 
> Because LegacyLongField is deprecated I tried LongPoint.
> 
> New code:
> LongPoint dateField = new LongPoint("modified", lastModified);
> 
> But how to set Field.Store.YES ???
> 
> Regards
> Bernd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


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