Lines Matching refs:terms
13 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html
23 * @param list<bool|float|int|string> $terms Terms list, leave empty if building a terms-lookup query
25 public function __construct(string $field, array $terms = [])
32 $this->setTerms($terms);
36 * Sets terms for the query.
38 * @param list<bool|float|int|string> $terms
40 public function setTerms(array $terms): self
42 return $this->setParam($this->field, $terms);
56 $terms = $this->getParam($this->field);
58 if (isset($terms['index'])) {
59 throw new InvalidException('Mixed terms and terms lookup are not allowed.');