Reputation: 784
I am new to SOLR. It is not clear to me why you would want to set stored=true when docValues is set to true as well?
SOLR can retrieve this value much faster using the docValues storage. I think, when you set docValues=true, stored should be false to save storage?
Upvotes: 1
Views: 864
Reputation: 15789
Firstable, docValues are not supported for all types, so this is already a full reason to use sort=true.
And secondable, retrieving a docvalues field is not always faster than retrieving a stored field.
docValues are specially valuable to speed up certain operations (facets, sorting...). Use them where needed, but keep stored=true if you need to as well.
Upvotes: 1