Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
While exporting result through "/export" handler,
http://localhost:8983/solr/core_name/export?q=my-query&sort=severity+desc,timestamp+desc&fl=severity,timestamp,msg
Doc-values are sought for all the sort fields defined (in this example 'severity, 'timestamp'). When we stream out docs we again make doc-value seeks against the fl fields ('severity','timestamp','msg') .
In most common use-cases we have fl = sort fields, or atleast the sort fields are subset of fl fields, so if we can pre-collect the values while sorting it, we can reduce the doc-value seeks potentially bringing speed improvement.