Die SolrInputDocument-Klasse

(PECL solr >= 0.9.2)

Einführung

Diese Klasse repräsentiert ein Solr-Dokument, das an den Solr-Index übermittelt werden soll.

Klassenbeschreibung

final class SolrInputDocument {
/* Konstanten */
const int SORT_DEFAULT = 1;
const int SORT_ASC = 1;
const int SORT_DESC = 2;
const int SORT_FIELD_NAME = 1;
/* Methoden */
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()
}

Vordefinierte Konstanten

SolrInputDocument-Klassenkonstanten

SolrInputDocument::SORT_DEFAULT

Sortiert die Felder in aufsteigender Reihenfolge.

SolrInputDocument::SORT_ASC

Sortiert die Felder in aufsteigender Reihenfolge.

SolrInputDocument::SORT_DESC

Sortiert die Felder in absteigender Reihenfolge.

SolrInputDocument::SORT_FIELD_NAME

Sortiert die Felder nach Namen.

SolrInputDocument::SORT_FIELD_VALUE_COUNT

Sortiert die Felder nach der Anzahl der Werte.

SolrInputDocument::SORT_FIELD_BOOST_VALUE

Sortiert die Felder nach dem Boost-Wert.

Inhaltsverzeichnis

add a note add a note

User Contributed Notes

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