Lines Matching defs:query
22 * Searches results for a query.
32 * "query" : {
37 * @param AbstractQuery|AbstractSuggest|array|Collapse|Query|string|Suggest|null $query Array with all query data inside or a Elastica\Query object
38 * @phpstan-param TCreateQueryArgs $query
48 public function search($query = '', $options = null, string $method = Request::POST): ResultSet;
51 * Counts results for a query.
53 * If no query is set, matchall query is created
55 * @param AbstractQuery|array|Query|string|null $query Array with all query data inside or a Elastica\Query object
56 * @phpstan-param TCreateQueryArgsMatching $query
64 * @return int number of documents matching the query
66 public function count($query = '', string $method = Request::POST);
69 * @param AbstractQuery|AbstractSuggest|array|Collapse|Query|string|Suggest|null $query
70 * @phpstan-param TCreateQueryArgs $query
74 public function createSearch($query = '', $options = null): Search;