You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Gimantha Bandara <gi...@wso2.com> on 2015/03/11 10:21:34 UTC

Difference between StoredField vs Other Fields with Field.Store.YES

Hi all,

Is there a difference between using StoredField and using other types of
fields with Field.Store.YES?

Another question, Is it a good practise to use NumericDocValuesField
instead of using usual Fields (IntField, LongField, StringField ...etc)
with Field.Store.NO ?
-- 
Gimantha Bandara
Software Engineer
WSO2. Inc : http://wso2.com
Mobile : +94714961919

Re: Difference between StoredField vs Other Fields with Field.Store.YES

Posted by Ian Lea <ia...@gmail.com>.
> 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