CakeFest 2024: The Official CakePHP Conference

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 __construct()
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 getField(string $fieldName): SolrDocumentField
public getFieldBoost(string $fieldName): float
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

boost 値でフィールドをソート

目次

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top