array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'solrinputdocument.sort.php', 1 => 'SolrInputDocument::sort', 2 => 'Sorts the fields within the document', ), 'up' => array ( 0 => 'class.solrinputdocument.php', 1 => 'SolrInputDocument', ), 'prev' => array ( 0 => 'solrinputdocument.setfieldboost.php', 1 => 'SolrInputDocument::setFieldBoost', ), 'next' => array ( 0 => 'solrinputdocument.toarray.php', 1 => 'SolrInputDocument::toArray', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/solrinputdocument/sort.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL solr >= 0.9.2)
SolrInputDocument::sort — Sorts the fields within the document
$sortOrderBy, int $sortDirection = SolrInputDocument::SORT_ASC): bool
The fields are rearranged 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 : * SolrInputDocument::SORT_FIELD_NAME * SolrInputDocument::SORT_FIELD_BOOST_VALUE * SolrInputDocument::SORT_FIELD_VALUE_COUNT The sort direction can be one of : * SolrInputDocument::SORT_DEFAULT * SolrInputDocument::SORT_ASC * SolrInputDocument::SORT_DESC
sortOrderByThe sort criteria
sortDirectionThe sort direction