SolrInputDocument::sort

(PECL solr >= 0.9.2) Sorts the fields within the document public bool SolrInputDocument::sort ( int $sortOrderBy [, int $sortDirection = SolrInputDocument::SORT_ASC ] ) The fields are rearranged according to the specified criteria and sort direction Fields can be sorted by boost values, field names and number of values. The $order_by parameter must be one of : * SolrInputDocument::SORT_FIELD_NAME

SolrInputDocument::setFieldBoost

(PECL solr >= 0.9.2) Sets the index-time boost value for a field public bool SolrInputDocument::setFieldBoost ( string $fieldName, float $fieldBoostValue ) Sets the index-time boost value for a field. This replaces the current boost value for this field. Parameters: fieldName The name of the field. fieldBoostValue The index time boos

SolrInputDocument::setBoost

(PECL solr >= 0.9.2) Sets the boost value for this document public bool SolrInputDocument::setBoost ( float $documentBoostValue ) Sets the boost value for this document. Parameters: documentBoostValue The index-time boost value for this document. Returns: Returns TRUE on success or FALSE on failure.

SolrInputDocument::reset

(PECL solr >= 0.9.2) This is an alias of SolrInputDocument::clear public bool SolrInputDocument::reset ( void ) This is an alias of SolrInputDocument::clear Returns: Returns TRUE on success or FALSE on failure.

SolrInputDocument::merge

(PECL solr >= 0.9.2) Merges one input document into another public bool SolrInputDocument::merge ( SolrInputDocument $sourceDoc [, bool $overwrite = true ] ) Merges one input document into another. Parameters: sourceDoc The source document. overwrite If this is TRUE it will replace matching fields in the destination document.

SolrInputDocument::getFieldNames

(PECL solr >= 0.9.2) Returns an array containing all the fields in the document public array SolrInputDocument::getFieldNames ( void ) Returns an array containing all the fields in the document. Returns: Returns an array on success and FALSE on failure.

SolrInputDocument::getFieldCount

(PECL solr >= 0.9.2) Returns the number of fields in the document public int SolrInputDocument::getFieldCount ( void ) Returns the number of fields in the document. Returns: Returns an integer on success or FALSE on failure.

SolrInputDocument::getFieldBoost

(PECL solr >= 0.9.2) Retrieves the boost value for a particular field public float SolrInputDocument::getFieldBoost ( string $fieldName ) Retrieves the boost value for a particular field. Parameters: fieldName The name of the field. Returns: Returns the boost value for the field or FALSE if there was an error.

SolrInputDocument::getField

(PECL solr >= 0.9.2) Retrieves a field by name public SolrDocumentField SolrInputDocument::getField ( string $fieldName ) Retrieves a field in the document. Parameters: fieldName The name of the field. Returns: Returns a SolrDocumentField object on success and FALSE on failure.

SolrInputDocument::getBoost

(PECL solr >= 0.9.2) Retrieves the current boost value for the document public float SolrInputDocument::getBoost ( void ) Retrieves the current boost value for the document. Returns: Returns the boost value on success and FALSE on failure.