$_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 |
_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