SOLRINPUTDOCUMENT(3) 1 SOLRINPUTDOCUMENT(3)
The SolrInputDocument class
INTRODUCTION
This class represents a Solr document that is about to be submitted to the Solr index.
CLASS SYNOPSIS
SolrInputDocument
final
SolrInputDocument
Constants
o const integer$SolrInputDocument::SORT_DEFAULT1
o const integer$SolrInputDocument::SORT_ASC1
o const integer$SolrInputDocument::SORT_DESC2
o const integer$SolrInputDocument::SORT_FIELD_NAME1
o const integer$SolrInputDocument::SORT_FIELD_VALUE_COUNT2
o const integer$SolrInputDocument::SORT_FIELD_BOOST_VALUE4
Methods
o public bool SolrInputDocument::addField (string $fieldName, string $fieldValue, [float $fieldBoostValue = 0.0])
o public bool SolrInputDocument::clear (void )
o public void SolrInputDocument::__clone (void )
o public SolrInputDocument::__construct (void )
o public bool SolrInputDocument::deleteField (string $fieldName)
o public void SolrInputDocument::__destruct (void )
o public bool SolrInputDocument::fieldExists (string $fieldName)
o public float SolrInputDocument::getBoost (void )
o public SolrDocumentField SolrInputDocument::getField (string $fieldName)
o public float SolrInputDocument::getFieldBoost (string $fieldName)
o public int SolrInputDocument::getFieldCount (void )
o public array SolrInputDocument::getFieldNames (void )
o public bool SolrInputDocument::merge (SolrInputDocument $sourceDoc, [bool $overwrite = true])
o public bool SolrInputDocument::reset (void )
o public bool SolrInputDocument::setBoost (float $documentBoostValue)
o public bool SolrInputDocument::setFieldBoost (string $fieldName, float $fieldBoostValue)
o public bool SolrInputDocument::sort (int $sortOrderBy, [int $sortDirection = SolrInputDocument::SORT_ASC])
o public array SolrInputDocument::toArray (void )
PREDEFINED CONSTANTS
SOLRINPUTDOCUMENT CLASS CONSTANTS
o SolrInputDocument::SORT_DEFAULT -Sorts the fields in ascending order.
o SolrInputDocument::SORT_ASC -Sorts the fields in ascending order.
o SolrInputDocument::SORT_DESC -Sorts the fields in descending order.
o SolrInputDocument::SORT_FIELD_NAME -Sorts the fields by name
o SolrInputDocument::SORT_FIELD_VALUE_COUNT -Sorts the fields by number of values.
o SolrInputDocument::SORT_FIELD_BOOST_VALUE -Sorts the fields by boost value.
PHP Documentation Group SOLRINPUTDOCUMENT(3)