Hi Gun, Thanks for the response.
Indeed I only want docValues to do facets. IMHO I think that a reference to the fact that docValues take precedence over other methods is needed. Is not always obvious. -- Yago Riveiro Sent with Sparrow (http://www.sparrowmailapp.com/?sig) On Monday, October 21, 2013 at 5:53 PM, Gun Akkor wrote: > Hello Yago, > > To my knowledge, in facet calculations docValues take precedence over other > methods. So, even if your field is also stored and indexed, your facets won't > use the inverted index or fieldValueCache, when docValues are present. > > I think you will still have to store and index to maintain your other > functionality. DocValues are helpful only for facets and sorting to my > knowledge. > > Hope this helps, > > Gun Akkor > www.carbonblack.com (http://www.carbonblack.com) > Sent from my iPhone > > On Oct 21, 2013, at 12:41 PM, Yago Riveiro <yago.rive...@gmail.com > (mailto:yago.rive...@gmail.com)> wrote: > > > Sorry if I don't make understand, my english is not too good. > > > > My goal is remove pressure from the heap, my indexes are too big and the > > heap get full very quick and I get an OOM. I read about docValues stored on > > disk, but I don't know how configure it. > > > > A read this link: > > https://cwiki.apache.org/confluence/display/solr/DocValues#DocValues-HowtoUseDocValues > > witch has an example that how to configure a field to use docValues: > > > > <field name="manu_exact" type="string" indexed="false" stored="false" > > docValues="true" /> > > > > With this configuration is obvious that I will use docValues. > > > > Q: With this configuration, can I retrieve the field value on a normal > > search or still need to be stored? > > > > If I have a field configured as: > > > > <field name="manu_exact" type="string" indexed="true" stored="true" > > docValues="true" /> > > > > And I do a facet query on manu_exact field: > > "q=*:*&facet=true&facet.field=manu_exact" > > > > Q: I leverage the docValues feature?, This means, docValues always has > > precedency if is set over the regular method to do a facet? > > Q: Make sense the field indexed if I have docValues? > > > > > > -- > > Yago Riveiro > > Sent with Sparrow (http://www.sparrowmailapp.com/?sig) > > > > > > On Monday, October 21, 2013 at 5:10 PM, Erick Erickson wrote: > > > > > I really don't understand the question. What behavior are you seeing > > > that leads you to ask? > > > > > > bq: Is it necessary duplicate the field and set index and stored to false > > > and > > > If this means setting _both_ indexed and stored to false, then you > > > effectively > > > throw the field completely away, there's no point in doing this. > > > > > > FWIW, > > > Erick > > > > > > > > > On Mon, Oct 21, 2013 at 1:39 PM, yriveiro <yago.rive...@gmail.com > > > (mailto:yago.rive...@gmail.com)> wrote: > > > > > > > Hi, > > > > > > > > If I have a field (named dv_field) configured to be indexed, stored and > > > > with > > > > docvalues=true. > > > > > > > > How I know that when I do a query like: > > > > > > > > q=*:*&facet=true&facet.field=dv_field, I'm really using the docvalues > > > > and > > > > not the normal way? > > > > > > > > Is it necessary duplicate the field and set index and stored to false > > > > and > > > > let the docvalues property set to true? > > > > > > > > > > > > > > > > ----- > > > > Best regards > > > > -- > > > > View this message in context: > > > > http://lucene.472066.n3.nabble.com/Question-about-docvalues-tp4096802.html > > > > Sent from the Solr - User mailing list archive at Nabble.com > > > > (http://Nabble.com). > > > > > > > > > > > > > > > > >