* @link https://github.com/pjmazenot/phpsolr-phpdoc
*/
/**
* (PECL solr >= 2.2.0)
* Class SolrCollapseFunction
* @link https://php.net/manual/en/class.solrcollapsefunction.php
*/
class SolrCollapseFunction
{
/** @var string */
public const NULLPOLICY_IGNORE = 'ignore';
/** @var string */
public const NULLPOLICY_EXPAND = 'expand';
/** @var string */
public const NULLPOLICY_COLLAPSE = 'collapse';
/**
* (PECL solr >= 2.2.0)
* SolrCollapseFunction constructor.
* @link https://php.net/manual/en/solrcollapsefunction.construct.php
* @param string $field [optional]
* The field name to collapse on.
* In order to collapse a result. The field type must be a single valued String, Int or Float.
*
*/
public function __construct($field) {}
/**
* (PECL solr >= 2.2.0)
* Returns the field that is being collapsed on.
* @link https://php.net/manual/en/solrcollapsefunction.getfield.php
* @return string
*/
public function getField() {}
/**
* (PECL solr >= 2.2.0)
* Returns collapse hint
* @link https://php.net/manual/en/solrcollapsefunction.gethint.php
* @return string
*/
public function getHint() {}
/**
* (PECL solr >= 2.2.0)
* Returns max parameter
* @link https://php.net/manual/en/solrcollapsefunction.getmax.php
* @return string
*/
public function getMax() {}
/**
* (PECL solr >= 2.2.0)
* Returns min parameter
* @link https://php.net/manual/en/solrcollapsefunction.getmin.php
* @return string
*/
public function getMin() {}
/**
* (PECL solr >= 2.2.0)
* Returns null policy
* @link https://php.net/manual/en/solrcollapsefunction.getnullpolicy.php
* @return string
*/
public function getNullPolicy() {}
/**
* (PECL solr >= 2.2.0)
* Returns size parameter
* @link https://php.net/manual/en/solrcollapsefunction.getsize.php
* @return int
*/
public function getSize() {}
/**
* (PECL solr >= 2.2.0)
* Sets the field to collapse on
* @link https://php.net/manual/en/solrcollapsefunction.setfield.php
* @param string $fieldName
* The field name to collapse on. In order to collapse a result. The field type must be a single valued String, Int
* or Float.
*
* @return SolrCollapseFunction
*/
public function setField($fieldName) {}
/**
* (PECL solr >= 2.2.0)
* Sets collapse hint
* @link https://php.net/manual/en/solrcollapsefunction.sethint.php
* @param string $hint
* Currently there is only one hint available "top_fc", which stands for top level FieldCache
*
* @return SolrCollapseFunction
*/
public function setHint($hint) {}
/**
* (PECL solr >= 2.2.0)
* Selects the group heads by the max value of a numeric field or function query.
* @link https://php.net/manual/en/solrcollapsefunction.setmax.php
* @param string $max
* @return SolrCollapseFunction
*/
public function setMax($max) {}
/**
* (PECL solr >= 2.2.0)
* Sets the initial size of the collapse data structures when collapsing on a numeric field only
* @link https://php.net/manual/en/solrcollapsefunction.setmin.php
* @param string $min
* @return SolrCollapseFunction
*/
public function setMin($min) {}
/**
* (PECL solr >= 2.2.0)
* Sets the NULL Policy
* @link https://php.net/manual/en/solrcollapsefunction.setnullpolicy.php
* @param string $nullPolicy
* @return SolrCollapseFunction
*/
public function setNullPolicy($nullPolicy) {}
/**
* (PECL solr >= 2.2.0)
* Sets the initial size of the collapse data structures when collapsing on a numeric field only.
* @link https://php.net/manual/en/solrcollapsefunction.setsize.php
* @param int $size
* @return SolrCollapseFunction
*/
public function setSize($size) {}
/**
* (PECL solr >= 2.2.0)
* Returns a string representing the constructed collapse function
* @link https://php.net/manual/en/solrcollapsefunction.tostring.php
* @return string
*/
public function __toString() {}
}