Re: Regarding behavior of docValues.

2015-02-24 Thread Modassar Ather
Thanks Erick for your detailed response. Sorry! I missed to put that I was trying to understand it in context of Solr-5.0.0 where fieldcache is no more available. Regards, Modassar On Wed, Feb 25, 2015 at 11:26 AM, Erick Erickson wrote: > You're making it too complicated. Both a docValues fiel

Re: Regarding behavior of docValues.

2015-02-24 Thread Erick Erickson
You're making it too complicated. Both a docValues field and an indexed (not docValues) field will give you the same functionality. For rapidly changing indexes, docValues will load more quickly when a new searcher is opened. Your question below is not really relevant. Can it be ** or Two fie

Re: Regarding behavior of docValues.

2015-02-24 Thread Modassar Ather
So for a requirement where I have a field which is used for sorting, faceting and searching what should be the better field definition. Can it be ** or Two fields each for sorting+faceting and for searching like following. ** Kindly note that it will be better if can use existing field for sort

Re: Regarding behavior of docValues.

2015-02-24 Thread Erick Erickson
Hmmm, that's not my understanding. docValues are simply a different layout for storing the _indexed_ values that facilitates rapid loading of the field from disk, essentially putting the uninverted field value in a conveniently-loadable form. So AFAIK, the field is stored only once and used for al

Re: Regarding behavior of docValues.

2015-02-24 Thread Modassar Ather
Thanks for your response Mikhail. On Tue, Feb 24, 2015 at 5:35 PM, Mikhail Khludnev < mkhlud...@griddynamics.com> wrote: > Both statements seem true to me. > > On Tue, Feb 24, 2015 at 2:49 PM, Modassar Ather > wrote: > > > Hi, > > > > Kindly help me understand the behavior of following field. >

Re: Regarding behavior of docValues.

2015-02-24 Thread Mikhail Khludnev
Both statements seem true to me. On Tue, Feb 24, 2015 at 2:49 PM, Modassar Ather wrote: > Hi, > > Kindly help me understand the behavior of following field. > > docValues="true" /> > > For a field like above where indexed="true" and docValues="true", is it > that: > 1) For sorting/faceting on

Regarding behavior of docValues.

2015-02-24 Thread Modassar Ather
Hi, Kindly help me understand the behavior of following field. For a field like above where indexed="true" and docValues="true", is it that: 1) For sorting/faceting on *manu_exact* the docValues will be used. 2) For querying on *manu_exact* the inverted index will be used. Thanks, Modassar