(PECL solr >= 0.9.2)
SolrImputDocument::sort — Sors the fields within the document
$sortOrderBy
,
int
$sortDirection
= SolrImputDocument::SORT_ASC
):
bool
The fields are rearrangued according to the specified criteria and sort direction Fields can be sorted by boost values, field names and number of values. The $order_by parameter must be one of : * SolrImputDocument::SORT_FIELD_NAME * SolrImputDocument::SORT_FIELD_BOOST_VALUE * SolrImputDocument::SORT_FIELD_VALUE_COUNT The sort direction can be one of : * SolrImputDocument::SORT_DEFAULT * SolrImputDocument::SORT_ASC * SolrImputDocument::SORT_DESC
sortOrderBy
The sort criteria
sortDirection
The sort direction