SolrInputDocument クラス

(PECL solr >= 0.9.2)

はじめに

このクラスは、Solr インデックスにサブミットされようとしている Solr 文書を表現します。

クラス概要

finalclassSolrInputDocument {
constintSORT_DEFAULT = 1;
constintSORT_ASC = 1;
constintSORT_DESC = 2;
public__construct()
publicaddField(string$fieldName, string$fieldValue, float$fieldBoostValue = 0.0): bool
publicclear(): bool
public__clone(): void
publicdeleteField(string$fieldName): bool
publicfieldExists(string$fieldName): bool
publicgetBoost(): float
publicgetFieldBoost(string$fieldName): float
publicmerge(SolrInputDocument$sourceDoc, bool$overwrite = true): bool
publicreset(): bool
publicsetBoost(float$documentBoostValue): bool
publicsetFieldBoost(string$fieldName, float$fieldBoostValue): bool
publicsort(int$sortOrderBy, int$sortDirection = SolrInputDocument::SORT_ASC): bool
publictoArray(): 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 値でフィールドをソート

目次

To Top