SOLRDOCUMENT(3) 1 SOLRDOCUMENT(3)
The SolrDocument class
INTRODUCTION
Represents a Solr document retrieved from a query response.
CLASS SYNOPSIS
SolrDocument
final
SolrDocumentArrayAccessIteratorSerializable
Constants
o const integer$SolrDocument::SORT_DEFAULT1
o const integer$SolrDocument::SORT_ASC1
o const integer$SolrDocument::SORT_DESC2
o const integer$SolrDocument::SORT_FIELD_NAME1
o const integer$SolrDocument::SORT_FIELD_VALUE_COUNT2
o const integer$SolrDocument::SORT_FIELD_BOOST_VALUE4
Methods
o public bool SolrDocument::addField (string $fieldName, string $fieldValue)
o public bool SolrDocument::clear (void )
o public void SolrDocument::__clone (void )
o public SolrDocument::__construct (void )
o public SolrDocumentField SolrDocument::current (void )
o public bool SolrDocument::deleteField (string $fieldName)
o public void SolrDocument::__destruct (void )
o public bool SolrDocument::fieldExists (string $fieldName)
o public SolrDocumentField SolrDocument::__get (string $fieldName)
o public SolrDocumentField SolrDocument::getField (string $fieldName)
o public int SolrDocument::getFieldCount (void )
o public array SolrDocument::getFieldNames (void )
o public SolrInputDocument SolrDocument::getInputDocument (void )
o public bool SolrDocument::__isset (string $fieldName)
o public string SolrDocument::key (void )
o public bool SolrDocument::merge (SolrDocument $sourceDoc, [bool $overwrite = true])
o public void SolrDocument::next (void )
o public bool SolrDocument::offsetExists (string $fieldName)
o public SolrDocumentField SolrDocument::offsetGet (string $fieldName)
o public void SolrDocument::offsetSet (string $fieldName, string $fieldValue)
o public void SolrDocument::offsetUnset (string $fieldName)
o public bool SolrDocument::reset (void )
o public void SolrDocument::rewind (void )
o public string SolrDocument::serialize (void )
o public bool SolrDocument::__set (string $fieldName, string $fieldValue)
o public bool SolrDocument::sort (int $sortOrderBy, [int $sortDirection = SolrDocument::SORT_ASC])
o public array SolrDocument::toArray (void )
o public void SolrDocument::unserialize (string $serialized)
o public bool SolrDocument::__unset (string $fieldName)
o public bool SolrDocument::valid (void )
PREDEFINED CONSTANTS
o SolrDocument::SORT_DEFAULT -Default mode for sorting fields within the document.
o SolrDocument::SORT_ASC -Sorts the fields in ascending order
o SolrDocument::SORT_DESC -Sorts the fields in descending order
o SolrDocument::SORT_FIELD_NAME -Sorts the fields by field name.
o SolrDocument::SORT_FIELD_VALUE_COUNT -Sorts the fields by number of values in each field.
o SolrDocument::SORT_FIELD_BOOST_VALUE -Sorts the fields by thier boost values.
PHP Documentation Group SOLRDOCUMENT(3)