SolrQuery::addExpandSortField

(PECL solr >= 2.2.0)

SolrQuery::addExpandSortFieldOrders the documents within the expanded groups (expand.sort parameter)

Description

public SolrQuery::addExpandSortField ( string $field [, string $order ] ) : SolrQuery

Orders the documents within the expanded groups (expand.sort parameter).

Parameters

field

field name

order

Order ASC/DESC, utilizes SolrQuery::ORDER_* constants.

Default: SolrQuery::ORDER_DESC

Return Values

SolrQuery

See Also

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/solrquery.addexpandsortfield.php