Find count of keys with integer value type

HI,
I'm building a query in Discover feature and 1 of the keys owns integer data value
I'm trying to set range of numbers values with this key so I can get the total count of records for this range

What I found so far is this:
E.g., key value goes from 0-9.

  1. myKey:0 - gives me the count of records with myKey:0
  2. myKey:0 + myKey:1 - gives me the count of records with myKey:0 + myKey:1

What's the syntax to own all the records?Trying to figure how to get the total count of all records from 0-9

Any idea?

Query strings can specify ranges: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-query-string-query.html#_ranges

1 Like

@spalger
Tnx Man !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.