SolrDocument::sort
(PECL solr >= 0.9.2)
SolrDocument::sort — Sorts the fields in the document
Описание
public bool SolrDocument::sort
( int
$sortOrderBy
[, int $sortDirection
= SolrDocument::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 sortOrderBy parameter must be one of : * SolrDocument::SORT_FIELD_NAME * SolrDocument::SORT_FIELD_BOOST_VALUE * SolrDocument::SORT_FIELD_VALUE_COUNT The sortDirection can be one of : * SolrDocument::SORT_DEFAULT * SolrDocument::SORT_ASC * SolrDocument::SORT_DESC The default way is to sort in ascending order.
Список параметров
-
sortOrderBy
-
The sort criteria.
-
sortDirection
-
The sort direction.
Возвращаемые значения
Возвращает TRUE
в случае успешного завершения или FALSE
в случае возникновения ошибки.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Расширения для работы с поисковыми системами
- Apache Solr
- Функция SolrDocument::addField() - Adds a field to the document
- Функция SolrDocument::clear() - Drops all the fields in the document
- Функция SolrDocument::__clone() - Creates a copy of a SolrDocument object
- Функция SolrDocument::__construct() - Constructor
- Функция SolrDocument::current() - Retrieves the current field
- Функция SolrDocument::deleteField() - Removes a field from the document
- Функция SolrDocument::__destruct() - Destructor
- Функция SolrDocument::fieldExists() - Checks if a field exists in the document
- Функция SolrDocument::__get() - Access the field as a property
- Функция SolrDocument::getField() - Retrieves a field by name
- Функция SolrDocument::getFieldCount() - Returns the number of fields in this document
- Функция SolrDocument::getFieldNames() - Returns an array of fields names in the document
- Функция SolrDocument::getInputDocument() - Returns a SolrInputDocument equivalent of the object
- Функция SolrDocument::__isset() - Checks if a field exists
- Функция SolrDocument::key() - Retrieves the current key
- Функция SolrDocument::merge() - Merges source to the current SolrDocument
- Функция SolrDocument::next() - Moves the internal pointer to the next field
- Функция SolrDocument::offsetExists() - Checks if a particular field exists
- Функция SolrDocument::offsetGet() - Retrieves a field
- Функция SolrDocument::offsetSet() - Adds a field to the document
- Функция SolrDocument::offsetUnset() - Removes a field
- Функция SolrDocument::reset() - This is an alias to SolrDocument::clear()
- Функция SolrDocument::rewind() - Resets the internal pointer to the beginning
- Функция SolrDocument::serialize() - Used for custom serialization
- Функция SolrDocument::__set() - Adds another field to the document
- Функция SolrDocument::sort() - Sorts the fields in the document
- Функция SolrDocument::toArray() - Returns an array representation of the document
- Функция SolrDocument::unserialize() - Custom serialization of SolrDocument objects
- Функция SolrDocument::__unset() - Removes a field from the document
- Функция SolrDocument::valid() - Checks if the current position internally is still valid
Коментарии
404 Not Found