Lines Matching defs:query

107      * @param array   $query   querystring when put mapping (for example update_all_types)
109 public function setMapping(Mapping $mapping, array $query = []): Response
111 return $mapping->send($this, $query);
159 * @param array $options Array of query params to use for query. For possible options check es api
179 * Update entries in the db based on a query.
181 * @param AbstractQuery|array|Query|string|null $query Query object or array
182 * @phpstan-param TCreateQueryArgsMatching $query
187 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html
193 public function updateByQuery($query, AbstractScript $script, array $options = []): Response
196 $q = Query::create($query)->getQuery();
198 'query' => \is_array($q) ? $q : $q->toArray(),
261 * @param array $options Array of query params to use for query. For possible options check es api
343 * Deletes documents matching the given query.
345 * @param AbstractQuery|array|Query|string|null $query Query object or array
346 * @phpstan-param TCreateQueryArgsMatching $query
350 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html
356 public function deleteByQuery($query, array $options = []): Response
358 $query = Query::create($query)->getQuery();
361 $endpoint->setBody(['query' => \is_array($query) ? $query : $query->toArray()]);
530 public function createSearch($query = '', $options = null, ?BuilderInterface $builder = null): Search
534 $search->setOptionsAndQuery($options, $query);
542 public function search($query = '', $options = null, string $method = Request::POST): ResultSet
544 $search = $this->createSearch($query, $options);
552 public function count($query = '', string $method = Request::POST): int
554 $search = $this->createSearch($query);
812 * @param array $options array of query params to use for query