Version240.php 1.9 KB

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