Die SolrDocument-Klasse
(PECL solr >= 0.9.2)
Einführung
Stellt ein Solr-Dokument dar, das aus einer Abfrageantwort abgerufen wurde.
Klassenbeschreibung
Vordefinierte Konstanten
SolrDocument::SORT_DEFAULT
-
Standardmodus für die Sortierung von Feldern innerhalb des Dokuments.
SolrDocument::SORT_ASC
-
Sortiert die Felder in aufsteigender Reihenfolge.
SolrDocument::SORT_DESC
-
Sortiert die Felder in absteigender Reihenfolge.
SolrDocument::SORT_FIELD_NAME
-
Sortiert die Felder nach Feldnamen.
SolrDocument::SORT_FIELD_VALUE_COUNT
-
Sortiert die Felder nach der Anzahl der Werte in jedem Feld.
SolrDocument::SORT_FIELD_BOOST_VALUE
-
Sortiert die Felder nach ihren Boost-Werten.
Inhaltsverzeichnis
- SolrDocument::addField — Adds a field to the document
- SolrDocument::clear — Drops all the fields in the document
- SolrDocument::__clone — Creates a copy of a SolrDocument object
- SolrDocument::__construct — Constructor
- SolrDocument::current — Retrieves the current field
- SolrDocument::deleteField — Removes a field from the document
- SolrDocument::__destruct — Destructor
- SolrDocument::fieldExists — Checks if a field exists in the document
- SolrDocument::__get — Access the field as a property
- SolrDocument::getChildDocuments — Returns an array of child documents (SolrDocument)
- SolrDocument::getChildDocumentsCount — Returns the number of child documents
- SolrDocument::getField — Retrieves a field by name
- SolrDocument::getFieldCount — Returns the number of fields in this document
- SolrDocument::getFieldNames — Returns an array of fields names in the document
- SolrDocument::getInputDocument — Returns a SolrInputDocument equivalent of the object
- SolrDocument::hasChildDocuments — Checks whether the document has any child documents
- SolrDocument::__isset — Checks if a field exists
- SolrDocument::key — Retrieves the current key
- SolrDocument::merge — Merges source to the current SolrDocument
- SolrDocument::next — Moves the internal pointer to the next field
- SolrDocument::offsetExists — Checks if a particular field exists
- SolrDocument::offsetGet — Retrieves a field
- SolrDocument::offsetSet — Adds a field to the document
- SolrDocument::offsetUnset — Removes a field
- SolrDocument::reset — This is an alias to SolrDocument::clear()
- SolrDocument::rewind — Resets the internal pointer to the beginning
- SolrDocument::serialize — Used for custom serialization
- SolrDocument::__set — Adds another field to the document
- SolrDocument::sort — Sorts the fields in the document
- SolrDocument::toArray — Returns an array representation of the document
- SolrDocument::unserialize — Custom serialization of SolrDocument objects
- SolrDocument::__unset — Removes a field from the document
- SolrDocument::valid — Checks if the current position internally is still valid