The SolrDocument class

(PECL solr >= 0.9.2)

Giriş

Represents a Solr document retrieved from a query response.

Sınıf Sözdizimi

finalclassSolrDocumentimplementsArrayAccess, Iterator, Serializable {
constintSORT_DEFAULT = 1;
constintSORT_ASC = 1;
constintSORT_DESC = 2;
public__construct()
publicaddField(string$fieldName, string$fieldValue): bool
publicclear(): bool
public__clone(): void
publicdeleteField(string$fieldName): bool
publicfieldExists(string$fieldName): bool
public__get(string$fieldName): SolrDocumentField
public__isset(string$fieldName): bool
publickey(): string
publicmerge(SolrDocument$sourceDoc, bool$overwrite = true): bool
publicnext(): void
publicoffsetExists(string$fieldName): bool
publicoffsetSet(string$fieldName, string$fieldValue): void
publicoffsetUnset(string$fieldName): void
publicreset(): bool
publicrewind(): void
publicserialize(): string
public__set(string$fieldName, string$fieldValue): bool
publicsort(int$sortOrderBy, int$sortDirection = SolrDocument::SORT_ASC): bool
publictoArray(): array
publicunserialize(string$serialized): void
public__unset(string$fieldName): bool
publicvalid(): bool
public__destruct()
}

Öntanımlı Sabitler

SolrDocument::SORT_DEFAULT

Default mode for sorting fields within the document.

SolrDocument::SORT_ASC

Sorts the fields in ascending order

SolrDocument::SORT_DESC

Sorts the fields in descending order

SolrDocument::SORT_FIELD_NAME

Sorts the fields by field name.

SolrDocument::SORT_FIELD_VALUE_COUNT

Sorts the fields by number of values in each field.

SolrDocument::SORT_FIELD_BOOST_VALUE

Sorts the fields by thier boost values.

İçindekiler

To Top