You can index AND docvalue? For some reason I thought they were exclusive
On Tue, May 19, 2020 at 5:36 PM Erick Erickson <erickerick...@gmail.com> 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 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 result set. The > second is for, given a result set, > count/sort/whatever. > > fq clauses are searches, so index=true. > > sorting, faceting, grouping and function queries are “for each doc in the > result set, what values does field Y contain?” > > Maybe that made things clear as mud, but it’s the way I think of it ;) > > Best, > Erick > > > > fq clauses are searches. Indexed=true is for searching. > > sort > > > On May 19, 2020, at 4:00 PM, matthew sporleder <msporle...@gmail.com> wrote: > > > > 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 >