Re: when to use docvalue

2020-05-20 Thread Revas
Thanks, Erick. Its just when we enable both index=true and docValues=true, it increases the index time by 2x atleast for full re-index. On Wed, May 20, 2020 at 2:30 PM Erick Erickson wrote: > Revas: > > Facet queries are just queries that are constrained by the total result > set of your >

Re: when to use docvalue

2020-05-20 Thread Erick Erickson
Revas: Facet queries are just queries that are constrained by the total result set of your primary query, so the answer to that would be the same as speeding up regular queries. As far as range facets are concerned, I believe they _do_ use docValues, after all they have to answer the exact same

Re: when to use docvalue

2020-05-20 Thread Rahul Goswami
Eric, Thanks for that explanation. I have a follow up question on that. I find the scenario of stored=true and docValues=true to be tricky at times... would like to know when is each of these scenarios preferred over the other two for primitive datatypes: 1) stored=true and docValues=false 2)

Re: when to use docvalue

2020-05-20 Thread Revas
Erick, Can you also explain how to optimize facet query and range facets as they dont use docValues and contribute to higher response time? On Tue, May 19, 2020 at 5:55 PM Erick Erickson wrote: > They are _absolutely_ able to be used together. Background: > > “In the bad old days”, there was no

Re: when to use docvalue

2020-05-19 Thread Erick Erickson
They are _absolutely_ able to be used together. Background: “In the bad old days”, there was no docValues. So whenever you needed to facet/sort/group/use function queries Solr (well, Lucene) had to take the inverted structure resulting from “index=true” and “uninvert” it on the Java heap.

Re: when to use docvalue

2020-05-19 Thread matthew sporleder
You can index AND docvalue? For some reason I thought they were exclusive On Tue, May 19, 2020 at 5:36 PM Erick Erickson wrote: > > Yes. You should also index them…. > > Here’s the way I think of it. > > For questions “For term X, which docs contain that value?” means index=true. > This is a

Re: when to use docvalue

2020-05-19 Thread Erick Erickson
Yes. You should also index them…. Here’s the way I think of it. For questions “For term X, which docs contain that value?” means index=true. This is a search. For questions “Does doc X have value Y in field Z”, means docValues=true. what’s the difference? Well, the first one is to get the

when to use docvalue

2020-05-19 Thread matthew sporleder
I have quite a few numeric / meta-data type fields in my schema and pretty much only use them in fq=, sort=, and friends. Should I always use DocValue on these if i never plan to q=search: on them? Are there any drawbacks? Thanks, Matt