$_params
$_params : array
Params.
Constant score query.
This function can be used to handle params for queries, filter
__construct(null|\Elastica\Query\AbstractQuery|array $filter = null)
Construct constant score query.
null|\Elastica\Query\AbstractQuery|array | $filter |
setFilter(array|\Elastica\Query\AbstractQuery $filter) : $this
Set filter.
array|\Elastica\Query\AbstractQuery | $filter |
setQuery(array|\Elastica\Query\AbstractQuery $query) : $this
Set query.
array|\Elastica\Query\AbstractQuery | $query |
If query is not an array or instance of AbstractQuery