Range

  • Used to match on any range of values
  • Equivalent of sql statement:
    select * from orders where id >= 1 and id <= 2
    
  • Example
    curl 'localhost:9200/ordering/orders/_search?pretty=true' -d '{
     "query" : {
        "range" : {
          "id" : {
          "gte" : 1,
          "lte" : 2
          }
        }
      }
    }'
    
  • More leaf query options

results matching ""

    No results matching ""