Клас 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;

    const
     int
      SORT_FIELD_VALUE_COUNT = 2;

    const
     int
      SORT_FIELD_BOOST_VALUE = 4;


    /* Методы */
    
   public __construct()

    public addChildDocument(SolrInputDocument $child): void
public addChildDocuments(array &$docs): void
public addField(string $fieldName, string $fieldValue, float $fieldBoostValue = 0.0): bool
public clear(): bool
public __clone(): void
public deleteField(string $fieldName): bool
public fieldExists(string $fieldName): bool
public getBoost(): float
public getChildDocuments(): array
public getChildDocumentsCount(): int
public getField(string $fieldName): SolrDocumentField
public getFieldBoost(string $fieldName): float
public getFieldCount(): int|false
public getFieldNames(): array
public hasChildDocuments(): bool
public merge(SolrInputDocument $sourceDoc, bool $overwrite = true): bool
public reset(): bool
public setBoost(float $documentBoostValue): bool
public setFieldBoost(string $fieldName, float $fieldBoostValue): bool
public sort(int $sortOrderBy, int $sortDirection = SolrInputDocument::SORT_ASC): bool
public toArray(): array

    public __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

Сортує поля за значенням підвищення.

Зміст