PHP 8.1.28 Released!

SolrInputDocument::sort

(PECL solr >= 0.9.2)

SolrInputDocument::sortTri les champs du document

Description

public SolrInputDocument::sort(int $sortOrderBy, int $sortDirection = SolrInputDocument::SORT_ASC): bool

Les champs sont réarrangés suivant les critères spécifiés et la direction du tri
   
   Les champs peuvent être triés par leurs valeurs de boost, leurs noms et leurs nombres de valeurs.
   
   Le paramètre $order_by peut être une valeur parmi :
   
   * SolrInputDocument::SORT_FIELD_NAME
   * SolrInputDocument::SORT_FIELD_BOOST_VALUE
   * SolrInputDocument::SORT_FIELD_VALUE_COUNT
   
   La direction de tri peut être une valeur parmi :
   
   * SolrInputDocument::SORT_DEFAULT
   * SolrInputDocument::SORT_ASC
   * SolrInputDocument::SORT_DESC

Liste de paramètres

sortOrderBy

Le critère de tri

sortDirection

La direction du tri

Valeurs de retour

Cette fonction retourne true en cas de succès ou false si une erreur survient.

add a note

User Contributed Notes

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