Apache Solr SolrInputDocument 클래스

(PECL solr >= 0.9.2)


소개

이 클래스는 Solr 색인에 제출될 Solr 문서를 나타냅니다.


클래스 개요

                  
final class SolrInputDocument {

  /* Constants */
  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;

  /* Methods */
  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
부스트 값으로 필드를 정렬합니다.

목차