* @link https://github.com/pjmazenot/phpsolr-phpdoc
*/
/**
* (PECL solr >= 0.9.2)
* Class SolrInputDocument
* This class represents a Solr document that is about to be submitted to the Solr index.
* @link https://php.net/manual/en/class.solrinputdocument.php
*/
final class SolrInputDocument
{
/** @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 >= 2.3.0)
* Adds a child document for block indexing
* @link https://php.net/manual/en/solrinputdocument.addchilddocument.php
* @param SolrInputDocument $child
* A SolrInputDocument object. *
* @throws SolrIllegalArgumentException * @throws SolrException */ public function addChildDocument(SolrInputDocument $child) {} /** * (PECL solr >= 2.3.0)* An array of SolrInputDocument objects. *
* @throws SolrIllegalArgumentException * @throws SolrException */ public function addChildDocuments(array &$docs) {} /** * (PECL solr >= 0.9.2)* The name of the field *
* @param string $fieldValue* The value for the field. *
* @param float $fieldBoostValue [optional]* The index time boost for the field. Though this cannot be negative, you can still pass values less than 1.0 but * they must be greater than zero. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function addField($fieldName, $fieldValue, $fieldBoostValue = 0.0) {} /** * (PECL solr >= 0.9.2)* Returns TRUE on success or FALSE on failure. *
*/ public function clear() {} /** * (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 was found and FALSE if it was not found. *
*/ public function fieldExists($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns the boost value on success and FALSE on failure. *
*/ public function getBoost() {} /** * (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)* The name of the field. *
* @return float|false* Returns the boost value for the field or FALSE if there was an error. *
*/ public function getFieldBoost($fieldName) {} /** * (PECL solr >= 0.9.2)* Returns an integer on success or 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 >= 2.3.0)* Returns TRUE if the document has any child documents *
*/ public function hasChildDocuments() {} /** * (PECL solr >= 0.9.2)* The source document. *
* @param bool $overwrite [optional]* If this is TRUE it will replace matching fields in the destination document. *
* @return bool* Returns TRUE on success or FALSE on failure. In the future, this will be modified to return the * number of fields in the new document. *
*/ public function merge(SolrInputDocument $sourceDoc, $overwrite = true) {} /** * (PECL solr >= 0.9.2)* Returns TRUE on success or FALSE on failure. *
*/ public function reset() {} /** * (PECL solr >= 0.9.2)* The index-time boost value for this document. *
* @return bool* Returns TRUE on success or FALSE on failure. *
*/ public function setBoost($documentBoostValue) {} /** * (PECL solr >= 0.9.2)* The name of the field. *
* @param float $fieldBoostValue* The index time boost value. *
*/ public function setFieldBoost($fieldName, $fieldBoostValue) {} /** * (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 containing the fields. It returns FALSE on failure. *
*/ public function toArray() {} }