The Solr 6.6 documentation states:
In cases where the query is returning only docValues fields performance may improve since returning stored fields requires disk reads and decompression whereas returning docValues fields in the fl list only requires memory access. I want to use this potential performance gain. I think I set up my schema correctly. Is there a way to make certain that only docValues are returned by a query? I am especially concerned about fields that are docValues but with stored=true, for the doc also states: Field values retrieved during search queries are typically returned from stored values. Does this mean that if I have such a field, retrieving as "stored value" is preferred over retrieving as docValue? If so, how can I prevent this behavior? The major problem here is field "id" which is (by default) a docValue with stored=true. Thanks, James