La clase SolrInputDocument

(PECL solr >= 0.9.2)

Introducción

Esta clase representa un documento Solr que está a punto de ser enviado al índice de Solr.

Sinopsis de la Clase

final SolrInputDocument {
/* Constantes */
const integer SORT_DEFAULT = 1 ;
const integer SORT_ASC = 1 ;
const integer SORT_DESC = 2 ;
const integer SORT_FIELD_NAME = 1 ;
const integer SORT_FIELD_VALUE_COUNT = 2 ;
const integer SORT_FIELD_BOOST_VALUE = 4 ;
/* Métodos */
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 __construct()
public deleteField(string $fieldName): bool
public __destruct(): void
public fieldExists(string $fieldName): bool
public getBoost(): float
public getChildDocuments(): array
public getField(string $fieldName): SolrDocumentField
public getFieldBoost(string $fieldName): float
public getFieldCount(): int
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
}

Constantes predefinidas

Constantes de la Clase SolrInputDocument

SolrInputDocument::SORT_DEFAULT

Ordena los campos de forma ascendente.

SolrInputDocument::SORT_ASC

Ordena los campos de forma ascendente.

SolrInputDocument::SORT_DESC

Ordena los campos de forma descendente

SolrInputDocument::SORT_FIELD_NAME

Ordena los campos por nombre

SolrInputDocument::SORT_FIELD_VALUE_COUNT

Ordena los campos según el número de valores.

SolrInputDocument::SORT_FIELD_BOOST_VALUE

Ordena los campos según el valor de boost.

Tabla de contenidos

add a note add a note

User Contributed Notes

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