1<?php
2
3namespace Elastica\QueryBuilder\Version;
4
5use Elastica\QueryBuilder\Version;
6
7/**
8 * elasticsearch 7.0 DSL.
9 *
10 * @see https://www.elastic.co/guide/en/elasticsearch/reference/7.0/index.html
11 *
12 * @author Cariou Pierre-Yves <cariou.p@gmail.com>
13 */
14class Version700 extends Version
15{
16    protected $queries = [
17        'bool',
18        'boosting',
19        'common_terms',
20        'constant_score',
21        'dis_max',
22        'distance_feature',
23        'function_score',
24        'fuzzy',
25        'geo_bounding_box',
26        'geo_distance',
27        'geo_polygon',
28        // 'geo_shape', // Not Implemented
29        'has_child',
30        'has_parent',
31        'ids',
32        'match',
33        'match_all',
34        'match_none',
35        'match_phrase',
36        'match_phrase_prefix',
37        'more_like_this',
38        'multi_match',
39        'nested',
40        'parent_id',
41        'prefix',
42        'query_string',
43        'simple_query_string',
44        'range',
45        'regexp',
46        'span_first',
47        'span_multi_term',
48        'span_near',
49        'span_not',
50        'span_or',
51        'span_term',
52        'term',
53        'terms',
54        'terms_set',
55        'wildcard',
56        'exists',
57        'percolate',
58    ];
59
60    protected $aggregations = [
61        'min',
62        'max',
63        'sum',
64        'sum_bucket',
65        'avg',
66        'avg_bucket',
67        'derivative',
68        'stats',
69        'stats_bucket',
70        'extended_stats',
71        'value_count',
72        'percentiles',
73        'percentiles_bucket',
74        // 'percentile_ranks', // Not implemented
75        'cardinality',
76        'cumulative_sum',
77        'geo_bounds',
78        'top_hits',
79        'scripted_metric',
80        'global',
81        'global_agg', // Deprecated
82        'filter',
83        'filters',
84        'missing',
85        'nested',
86        'reverse_nested',
87        // 'children', //Not implemented
88        'terms',
89        'significant_terms',
90        'range',
91        'date_range',
92        'ipv4_range',
93        'histogram',
94        'date_histogram',
95        'geo_distance',
96        'geohash_grid',
97        'bucket_script',
98        'serial_diff',
99        'weighted_avg',
100        'composite',
101        'normalize',
102    ];
103
104    protected $suggesters = [
105        'term',
106        'phrase',
107        'completion',
108        // 'context', // Not implemented
109    ];
110
111    protected $collapsers = [
112        'inner_hits',
113    ];
114}
115