* @link https://github.com/pjmazenot/phpsolr-phpdoc
*/
/**
* (PECL solr >= 0.9.2)
* Class SolrDocument
* This class represents a Solr document retrieved from a query response.
* @link https://php.net/manual/en/class.solrinputdocument.php
*/
final class SolrDocument implements ArrayAccess, Iterator, Serializable
{
/** @var int Sorts the fields in ascending order. */
public const SORT_DEFAULT = 1;
/** @var int Sorts the fields in ascending order. */
public const SORT_ASC = 1;
/** @var int Sorts the fields in descending order. */
public const SORT_DESC = 2;
/** @var int Sorts the fields by name */
public const SORT_FIELD_NAME = 1;
/** @var int Sorts the fields by number of values. */
public const SORT_FIELD_VALUE_COUNT = 2;
/** @var int Sorts the fields by boost value. */
public const SORT_FIELD_BOOST_VALUE = 4;
/**
* (PECL solr >= 0.9.2)
* Adds a field to the document
* @link https://php.net/manual/en/solrdocument.addfield.php
* @param string $fieldName
* The name of the field *
* @param string $fieldValue* The value for the field. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function addField($fieldName, $fieldValue) {} /** * (PECL solr >= 0.9.2)* Returns TRUE on success or FALSE on failure. *
*/ public function clear() {} /** * (PECL solr >= 0.9.2)* Returns the field *
*/ public function current() {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function deleteField($fieldName) {} /** * (PECL solr >= 0.9.2)* Name of the field. *
* @return bool* Returns TRUE if the field is present and FALSE if it does not. *
*/ public function fieldExists($fieldName) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @return SolrDocumentField* Returns a SolrDocumentField instance. *
*/ public function __get($fieldName) {} /** * (PECL solr >= 2.3.0)* The name of the field. *
* @return SolrDocumentField|false Returns a SolrDocumentField object on success and FALSE on failure */ public function getField($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns an integer on success and FALSE on failure. *
*/ public function getFieldCount() {} /** * (PECL solr >= 0.9.2)* Returns an array on success and FALSE on failure. *
*/ public function getFieldNames() {} /** * (PECL solr >= 0.9.2)* Returns a SolrInputDocument on success and NULL on failure. *
*/ public function getInputDocument() {} /** * (PECL solr >= 2.3.0)* Returns TRUE if the document has any child documents *
*/ public function hasChildDocuments() {} /** * (PECL solr >= 0.9.2)* Name of the field. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function __isset($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns the current key. *
*/ public function key() {} /** * (PECL solr >= 0.9.2)* The source document. *
* @param bool $overwrite [optional]* If this is TRUE then fields with the same name in the destination document will be overwritten. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function offsetExists($fieldName) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @return SolrDocumentField* Returns a SolrDocumentField object. *
*/ public function offsetGet($fieldName) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @param string $fieldValue* The value for this field. *
* @return bool */ public function offsetSet($fieldName, $fieldValue) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
*/ public function offsetUnset($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns TRUE on success or FALSE on failure. *
*/ public function reset() {} /** * (PECL solr >= 0.9.2)* Returns a string representing the serialized Solr document. *
*/ public function serialize() {} /** * (PECL solr >= 0.9.2)* Name of the field. *
* @param string $fieldValue* Field value. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function __set($fieldName, $fieldValue) {} /** * (PECL solr >= 0.9.2)* The sort criteria, must be one of : *
* The sort direction, can be one of : *
* Returns TRUE on success or FALSE on failure. *
*/ public function sort($sortOrderBy, $sortDirection = SolrInputDocument::SORT_ASC) {} /** * (PECL solr >= 0.9.2)* Returns an array representation of the document. *
*/ public function toArray() {} /** * (PECL solr >= 0.9.2)* An XML representation of the document. *
*/ public function unserialize($serialized) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function __unset($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns TRUE on success or FALSE on failure. *
*/ public function valid() {} }