SolrInputDocument::sort
(PECL solr >= 0.9.2)
SolrInputDocument::sort — Sorts the fields within the document
Description
public bool SolrInputDocument::sort
( int
$sortOrderBy
[, int $sortDirection
= SolrInputDocument::SORT_ASC
] )
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
Parameters
-
sortOrderBy
-
The sort criteria
-
sortDirection
-
The sort direction
Return Values
Returns TRUE
on success or FALSE
on failure.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с поисковыми системами
- Apache Solr
- Функция SolrInputDocument::addField() - Adds a field to the document
- Функция SolrInputDocument::clear() - Resets the input document
- Функция SolrInputDocument::__clone() - Creates a copy of a SolrDocument
- Функция SolrInputDocument::__construct() - Constructor
- Функция SolrInputDocument::deleteField() - Removes a field from the document
- Функция SolrInputDocument::__destruct() - Destructor
- Функция SolrInputDocument::fieldExists() - Checks if a field exists
- Функция SolrInputDocument::getBoost() - Retrieves the current boost value for the document
- Функция SolrInputDocument::getField() - Retrieves a field by name
- Функция SolrInputDocument::getFieldBoost() - Retrieves the boost value for a particular field
- Функция SolrInputDocument::getFieldCount() - Returns the number of fields in the document
- Функция SolrInputDocument::getFieldNames() - Returns an array containing all the fields in the document
- Функция SolrInputDocument::merge() - Merges one input document into another
- Функция SolrInputDocument::reset() - This is an alias of SolrInputDocument::clear
- Функция SolrInputDocument::setBoost() - Sets the boost value for this document
- Функция SolrInputDocument::setFieldBoost() - Sets the index-time boost value for a field
- Функция SolrInputDocument::sort() - Sorts the fields within the document
- Функция SolrInputDocument::toArray() - Returns an array representation of the input document
Коментарии
404 Not Found