lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Lea <ian....@gmail.com>
Subject Re: Difference between StoredField vs Other Fields with Field.Store.YES
Date Wed, 11 Mar 2015 11:32:04 GMT
> Is there a difference between using StoredField and using other types of
> fields with Field.Store.YES?

It will depend on what the other type of field is.  As the javadoc for
Field states, the xxxField classes are sugar.  If you are doing
standard things on standard data it's generally easier to use the
sugar classes, but if you need control you can build your own fields
however you like.


> Another question, Is it a good practise to use NumericDocValuesField
> instead of using usual Fields (IntField, LongField, StringField ...etc)
> with Field.Store.NO ?

Sorry, can't answer that.


--
Ian.

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