# SolrCollapseFunction::setNullPolicy

(PECL solr >= 2.2.0)

SolrCollapseFunction::setNullPolicy — Sets the NULL Policy

### 说明

public SolrCollapseFunction::setNullPolicy(string `$nullPolicy`): SolrCollapseFunction

Sets the NULL Policy. One of the 3 policies defined as class constants shall be passed. Accepts ignore, expand, or collapse policies.

### 参数

`nullPolicy`

### 返回值

SolrCollapseFunction

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open