Result Document Field Sorting Query Stage
Re-order results returned from Solr by the value in a document field.
Re-orders results returned from Solr by the value in a document field
skip - boolean
Set to true to skip this stage.
Default: false
label - string
A unique label for this stage.
<= 255 characters
condition - string
Define a conditional script that must result in true or false. This can be used to determine if the stage should process or not.
sortField - stringrequired
Which result document field to sort based on
Default: ensemble_score
sortOrder - stringrequired
(asc)ending / (desc)ending
Default: desc
Allowed values: descasc
failOnError - boolean
Flag to indicate if this stage should throw an exception if an error occurs.
Default: false