PHP 8.6.0 Beta 1 is available for testing

Класс SolrInputDocument

(PECL solr >= 0.9.2)

Введение

Этот класс представляет документ Solr, который будет отправлен в индекс Solr.

Обзор класса

final class SolrInputDocument {
/* Константы */
const int SORT_DEFAULT = 1;
const int SORT_ASC = 1;
const int SORT_DESC = 2;
const int SORT_FIELD_NAME = 1;
/* Методы */
public function __construct ()
public function addChildDocument (SolrInputDocument $child): void
public function addChildDocuments (array &$docs): void
public function addField (string $fieldName, string $fieldValue, float $fieldBoostValue = 0.0): bool
public function clear (): bool
public function __clone (): void
public function deleteField (string $fieldName): bool
public function fieldExists (string $fieldName): bool
public function getBoost (): float
public function getChildDocuments (): array
public function getChildDocumentsCount (): int
public function getField (string $fieldName): SolrDocumentField
public function getFieldBoost (string $fieldName): float
public function getFieldCount (): int |false
public function getFieldNames (): array
public function hasChildDocuments (): bool
public function merge (SolrInputDocument $sourceDoc, bool $overwrite = true ): bool
public function reset (): bool
public function setBoost (float $documentBoostValue): bool
public function setFieldBoost (string $fieldName, float $fieldBoostValue): bool
public function sort (int $sortOrderBy, int $sortDirection = SolrInputDocument::SORT_ASC): bool
public function toArray (): array
public function __destruct ()
}

Предопределённые константы

Константы класса SolrInputDocument

SolrInputDocument::SORT_DEFAULT

Сортирует поля в порядке возрастания.

SolrInputDocument::SORT_ASC

Сортирует поля в порядке возрастания.

SolrInputDocument::SORT_DESC

Сортирует поля в порядке убывания.

SolrInputDocument::SORT_FIELD_NAME

Сортирует поля по имени

SolrInputDocument::SORT_FIELD_VALUE_COUNT

Сортирует поля по количеству значений.

SolrInputDocument::SORT_FIELD_BOOST_VALUE

Сортирует поля по значению повышения.

Содержание

Нашли ошибку?

ИнструкцияИсправлениеСообщение об ошибке
+Добавить

Примечания пользователей

Пользователи ещё не добавляли примечания для страницы

AltStyle によって変換されたページ (->オリジナル) /