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