update pague now
PHP 8.5.2 Released!

SolrImputDocument::sort

(PECL solr >= 0.9.2)

SolrImputDocument::sort Sors the fields within the document

Description

public SolrImputDocument::sort ( int $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

Parameters

sortOrderBy

The sort criteria

sortDirection

The sort direction

Return Values

Returns true on success or false on failure.

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top