©
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
(PECL solr >= 0.9.2)
This class represents a Solr document that is about to be submitted to the Solr index.
$fieldName
, string $fieldValue
[, float $fieldBoostValue
= 0.0
] )$fieldName
)$fieldName
)$fieldName
)$fieldName
)$sourceDoc
[, bool $overwrite
= true
] )$documentBoostValue
)$fieldName
, float $fieldBoostValue
)$sortOrderBy
[, int $sortDirection
= SolrInputDocument::SORT_ASC
] )SolrInputDocument::SORT_DEFAULT
Sorts the fields in ascending order.
SolrInputDocument::SORT_ASC
Sorts the fields in ascending order.
SolrInputDocument::SORT_DESC
Sorts the fields in descending order.
SolrInputDocument::SORT_FIELD_NAME
Sorts the fields by name
SolrInputDocument::SORT_FIELD_VALUE_COUNT
Sorts the fields by number of values.
SolrInputDocument::SORT_FIELD_BOOST_VALUE
Sorts the fields by boost value.