/**
* The term query produce an Elasticsearch terms query.
*
* @param string|array $values Search values. String are exploded using the comma as separator.
* @param string $field Search field.
* @param string $name Name of the query.
* @param integer $boost Query boost.
*/
public function __construct($values, $field, $name = null, $boost = QueryInterface::DEFAULT_BOOST_VALUE)
{
if (!is_array($values)) {
$values = explode(',', $values);
}
parent::__construct($values, $field, $name, $boost);
}