$_params
$_params : array
Params.
Bool query.
This class is for backward compatibility reason for all php < 7 versions. For PHP 7 and above use BoolQuery as Bool is reserved.
addShould(\Elastica\Query\AbstractQuery|array $args) : $this
Add should part to query.
\Elastica\Query\AbstractQuery|array | $args | Should query |
addMust(\Elastica\Query\AbstractQuery|array $args) : $this
Add must part to query.
\Elastica\Query\AbstractQuery|array | $args | Must query |
addMustNot(\Elastica\Query\AbstractQuery|array $args) : $this
Add must not part to query.
\Elastica\Query\AbstractQuery|array | $args | Must not query |
addFilter(\Elastica\Query\AbstractQuery $filter) : $this
Sets the filter.
\Elastica\Query\AbstractQuery | $filter | Filter object |
setMinimumShouldMatch(integer|string $minimum) : $this
Sets the minimum number of should clauses to match.
integer|string | $minimum | Minimum value |
None found |
toArray() : array
Converts the params to an array. A default implementation exist to create the an array out of the class name (last part of the class name) and the params.
Filter array
None found |
setParam(string $key, mixed $value) : $this
Sets (overwrites) the value at the given key.
string | $key | Key to set |
mixed | $value | Key Value |
None found |
setParams(array $params) : $this
Sets (overwrites) all params of this object.
array | $params | Parameter list |
None found |
addParam(string $key, mixed $value) : $this
Adds a param to the list.
This function can be used to add an array of params
string | $key | Param key |
mixed | $value | Value to set |
None found |
getParam(string $key) : mixed
Returns a specific param.
string | $key | Key to return |
If requested key is not set
Key value
None found |
hasParam(string $key) : boolean
Test if a param is set.
string | $key | Key to test |
True if the param is set, false otherwise
None found |
None found |
_addQuery(string $type, \Elastica\Query\AbstractQuery|array $args) : $this
Adds a query to the current object.
string | $type | Query type |
\Elastica\Query\AbstractQuery|array | $args | Query |
If not valid query
None found |
_convertArrayable(array $array) : array
Cast objects to arrays.
array | $array |
None found |
_getBaseName() : string
Param's name Picks the last part of the class name and makes it snake_case You can override this method if you want to change the name.
name
None found |
_setRawParam(string $key, mixed $value) : $this
Sets params not inside params array.
string | $key | |
mixed | $value |
None found |