PHP Class Smile\ElasticsuiteCore\Search\Request\Query\Boolean

Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Smile\ElasticsuiteCore\Search\Request\QueryInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( array $must = [], array $should = [], array $mustNot = [], integer $minimumShouldMatch = 1, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE, boolean $cached = false ) Constructor.
getBoost ( ) {@inheritDoc}
getMinimumShouldMatch ( ) : integer Minimum should match query clause.
getMust ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[] Must clause queries.
getMustNot ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[] Must not clause queries.
getName ( ) {@inheritDoc}
getShould ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[] Should clause queries.
getType ( ) {@inheritDoc}
isCached ( ) : boolean Indicates if the bool query needs to be cached or not.

Method Details

__construct() public method

Constructor.
public __construct ( array $must = [], array $should = [], array $mustNot = [], integer $minimumShouldMatch = 1, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE, boolean $cached = false )
$must array Must clause queries.
$should array Should clause queries.
$mustNot array Must not clause queries.
$minimumShouldMatch integer Minimum should match query clause.
$name string Query name.
$boost integer Query boost.
$cached boolean Should the query be cached or not.

getBoost() public method

{@inheritDoc}
public getBoost ( )

getMinimumShouldMatch() public method

Minimum should match query clause.
public getMinimumShouldMatch ( ) : integer
return integer

getMust() public method

Must clause queries.
public getMust ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[]
return Smile\ElasticsuiteCore\Search\Request\QueryInterface[]

getMustNot() public method

Must not clause queries.
public getMustNot ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[]
return Smile\ElasticsuiteCore\Search\Request\QueryInterface[]

getName() public method

{@inheritDoc}
public getName ( )

getShould() public method

Should clause queries.
public getShould ( ) : Smile\ElasticsuiteCore\Search\Request\QueryInterface[]
return Smile\ElasticsuiteCore\Search\Request\QueryInterface[]

getType() public method

{@inheritDoc}
public getType ( )

isCached() public method

Indicates if the bool query needs to be cached or not.
public isCached ( ) : boolean
return boolean