PHP - Manual: SolrInputDocument
2025-10-24
(PECL solr >= 0.9.2)
This class represents a Solr document that is about to be submitted to the Solr index.
SolrInputDocument::SORT_DEFAULTSorts the fields in ascending order.
SolrInputDocument::SORT_ASCSorts the fields in ascending order.
SolrInputDocument::SORT_DESCSorts the fields in descending order.
SolrInputDocument::SORT_FIELD_NAMESorts the fields by name
SolrInputDocument::SORT_FIELD_VALUE_COUNTSorts the fields by number of values.
SolrInputDocument::SORT_FIELD_BOOST_VALUESorts the fields by boost value.
官方地址:https://www.php.net/manual/en/class.solrinputdocument.php