O
O
Oleg-Ukraine2017-09-07 12:10:01
elasticsearch
Oleg-Ukraine, 2017-09-07 12:10:01

How to work with integer in elasticsearch?

How to select all elements in elasticsearch that are strictly greater than or strictly less than a certain int value?
In particular, I train with such a request

"query": {
        "bool": {
            "must": [
               {
                   "range": {
                      "id": {
                         "from": 20
                      }
                   }
               }
            ]
        }
    }

In response, documents are received both more and less than 20

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RidgeA, 2017-09-07
@Oleg-Ukraine

https://www.elastic.co/guide/en/elasticsearch/refe...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question