Lines Matching defs:query
8 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html
15 public function __construct(string $query, array $fields = [])
17 $this->setQuery($query);
24 * Set the querystring for this query.
26 * @param string $query see ES documentation for querystring syntax
30 public function setQuery(string $query): self
32 return $this->setParam('query', $query);
36 * @param string[] $fields the fields on which to perform this query. Defaults to index.query.default_field.
46 * Set the default operator to use if no explicit operator is defined in the query string.
58 * Set the analyzer used to analyze each term of the query.