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

Author: Aurelien FOUCRET ([email protected])
Inheritance: extends Term
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
__construct ( string | array $values, string $field, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE ) The term query produce an Elasticsearch terms query.
getType ( ) {@inheritDoc}
getValues ( ) : array

Method Details

__construct() public method

The term query produce an Elasticsearch terms query.
public __construct ( string | array $values, string $field, string $name = null, integer $boost = QueryInterface::DEFAULT_BOOST_VALUE )
$values string | array Search values. String are exploded using the comma as separator.
$field string Search field.
$name string Name of the query.
$boost integer Query boost.

getType() public method

{@inheritDoc}
public getType ( )

getValues() public method

public getValues ( ) : array
return array