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

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

Public Methods

Method Description
__construct ( string $value, string $field, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE ) The term query produce an Elasticsearch term query.
getBoost ( ) {@inheritDoc}
getField ( ) : string Search field.
getName ( ) {@inheritDoc}
getType ( ) {@inheritDoc}
getValue ( ) : string Search value.

Method Details

__construct() public method

The term query produce an Elasticsearch term query.
public __construct ( string $value, string $field, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE )
$value string Search value.
$field string Search field.
$name string Name of the query.
$boost integer Query boost.

getBoost() public method

{@inheritDoc}
public getBoost ( )

getField() public method

Search field.
public getField ( ) : string
return string

getName() public method

{@inheritDoc}
public getName ( )

getType() public method

{@inheritDoc}
public getType ( )

getValue() public method

Search value.
public getValue ( ) : string
return string