class SolrCollapseFunction (View source)

(PECL solr >= 2.2.0)
Class SolrCollapseFunction

Constants

NULLPOLICY_IGNORE

NULLPOLICY_EXPAND

NULLPOLICY_COLLAPSE

Methods

__construct(string $field)

(PECL solr >= 2.2.0)
SolrCollapseFunction constructor.

string
getField()

(PECL solr >= 2.2.0)
Returns the field that is being collapsed on.

string
getHint()

(PECL solr >= 2.2.0)
Returns collapse hint

string
getMax()

(PECL solr >= 2.2.0)
Returns max parameter

string
getMin()

(PECL solr >= 2.2.0)
Returns min parameter

string
getNullPolicy()

(PECL solr >= 2.2.0)
Returns null policy

int
getSize()

(PECL solr >= 2.2.0)
Returns size parameter

setField(string $fieldName)

(PECL solr >= 2.2.0)
Sets the field to collapse on

setHint(string $hint)

(PECL solr >= 2.2.0)
Sets collapse hint

setMax(string $max)

(PECL solr >= 2.2.0)
Selects the group heads by the max value of a numeric field or function query.

setMin(string $min)

(PECL solr >= 2.2.0)
Sets the initial size of the collapse data structures when collapsing on a numeric field only

setNullPolicy(string $nullPolicy)

(PECL solr >= 2.2.0)
Sets the NULL Policy

setSize(int $size)

(PECL solr >= 2.2.0)
Sets the initial size of the collapse data structures when collapsing on a numeric field only.

string
__toString()

(PECL solr >= 2.2.0)
Returns a string representing the constructed collapse function

Details

__construct(string $field)

(PECL solr >= 2.2.0)
SolrCollapseFunction constructor.

Parameters

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.

string getField()

(PECL solr >= 2.2.0)
Returns the field that is being collapsed on.

Return Value

string

string getHint()

(PECL solr >= 2.2.0)
Returns collapse hint

Return Value

string

string getMax()

(PECL solr >= 2.2.0)
Returns max parameter

Return Value

string

string getMin()

(PECL solr >= 2.2.0)
Returns min parameter

Return Value

string

string getNullPolicy()

(PECL solr >= 2.2.0)
Returns null policy

Return Value

string

int getSize()

(PECL solr >= 2.2.0)
Returns size parameter

Return Value

int

SolrCollapseFunction setField(string $fieldName)

(PECL solr >= 2.2.0)
Sets the field to collapse on

Parameters

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 Value

SolrCollapseFunction

SolrCollapseFunction setHint(string $hint)

(PECL solr >= 2.2.0)
Sets collapse hint

Parameters

string $hint

Currently there is only one hint available "top_fc", which stands for top level FieldCache

Return Value

SolrCollapseFunction

SolrCollapseFunction setMax(string $max)

(PECL solr >= 2.2.0)
Selects the group heads by the max value of a numeric field or function query.

Parameters

string $max

Return Value

SolrCollapseFunction

SolrCollapseFunction setMin(string $min)

(PECL solr >= 2.2.0)
Sets the initial size of the collapse data structures when collapsing on a numeric field only

Parameters

string $min

Return Value

SolrCollapseFunction

SolrCollapseFunction setNullPolicy(string $nullPolicy)

(PECL solr >= 2.2.0)
Sets the NULL Policy

Parameters

string $nullPolicy

Return Value

SolrCollapseFunction

SolrCollapseFunction setSize(int $size)

(PECL solr >= 2.2.0)
Sets the initial size of the collapse data structures when collapsing on a numeric field only.

Parameters

int $size

Return Value

SolrCollapseFunction

string __toString()

(PECL solr >= 2.2.0)
Returns a string representing the constructed collapse function

Return Value

string