Re: docValues usage

2020-11-04 Thread Wei
And in the case of both stored=true and docValues=true, Solr 8.x shall be choosing the optimal approach by itself? On Wed, Nov 4, 2020 at 9:15 AM Wei wrote: > Thanks Erick. As indexed is not necessary, and docValues is more > efficient than stored fields for function queries, so we shall go w

Re: docValues usage

2020-11-04 Thread Wei
Thanks Erick. As indexed is not necessary, and docValues is more efficient than stored fields for function queries, so we shall go with the following: 3) indexed=false, stored=false, docValues=true. Is my understanding correct? Best, Wei On Wed, Nov 4, 2020 at 5:24 AM Erick Erickson wrot

Re: docValues usage

2020-11-04 Thread Erick Erickson
You don’t need to index the field for function queries, see: https://lucene.apache.org/solr/guide/8_6/docvalues.html. Function queries, as opposed to sorting, faceting and grouping are evaluated at search time where the search process is already parked on the document anyway, so answering the

Re: docValues usage

2020-11-04 Thread uyilmaz
Hi, I'm by no means expert on this so if anyone sees a mistake please correct me. I think you need to index this field, since boost functions are added to the query as optional clauses (https://lucene.apache.org/solr/guide/6_6/the-dismax-query-parser.html#TheDisMaxQueryParser-Thebf_BoostFunctio

docValues usage

2020-11-03 Thread Wei
Hi, I have a couple of primitive single value numeric type fields, their values are used in boosting functions, but not used in sort/facet. or in returned response. Should I use docValues for them in the schema? I can think of the following options: 1) indexed=true, stored=true, docValues

Re: solr-4.3.1 docValues usage

2016-02-17 Thread Neeraj Lajpal
Can someone please help me with this? I am stuck for past few days. > On 15-Feb-2016, at 6:39 PM, Neeraj Lajpal wrote: > > Hi, > > I recently asked this question on stackoverflow: > > I am trying to access a field in custom request handler. I am accessing it > like this for each document: >

Re: solr-4.3.1 docValues usage

2016-02-15 Thread Mikhail Khludnev
Hello Neeraj, Check slide 23 and overall http://www.slideshare.net/lucenerevolution/what-is-inaluceneagrandfinal On Mon, Feb 15, 2016 at 4:09 PM, Neeraj Lajpal wrote: > Hi, > I recently asked this question on stackoverflow: > I am trying to access a field in custom request handler. I am access

Re: solr-4.3.1 docValues usage

2016-02-15 Thread Emir Arnautovic
Sorry - replied to wrong thread :( On 15.02.2016 15:17, Emir Arnautovic wrote: Hi, Not sure how ordering will help (maybe missing question) but what seems to me that would help your case is simple boosting. See https://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_make_.22superman.22_in_the

Re: solr-4.3.1 docValues usage

2016-02-15 Thread Emir Arnautovic
Hi, Not sure how ordering will help (maybe missing question) but what seems to me that would help your case is simple boosting. See https://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_make_.22superman.22_in_the_title_field_score_higher_than_in_the_subject_field Regards, Emir On 15.02.201

Re: solr-4.3.1 docValues usage

2016-02-15 Thread Binoy Dalal
DocValues has nothing to do with your handler. It is a field property. To use it simply put docValues=true in your field definitions and reindex. On Mon, 15 Feb 2016, 18:40 Neeraj Lajpal wrote: > Hi, > I recently asked this question on stackoverflow: > I am trying to access a field in custom req

solr-4.3.1 docValues usage

2016-02-15 Thread Neeraj Lajpal
Hi, I recently asked this question on stackoverflow: I am trying to access a field in custom request handler. I am accessing it like this for each document: Document doc;doc = reader.document(id);DocFields = doc.getValues("state");There are around 600,000 documents in the solr. For a query runnin