Range query input type string vs numeric

Is there a negative impact on using a string input type vs numeric input type on the search query?
For e.g. below in second example, quoted 10

{
  "query": {
    "range": {
      "age": {
        "gte": 10
      }
    }
  }
}

vs.

{
  "query": {
    "range": {
      "age": {
        "gte": "10"
        }
    }
  }
}

The only impact should be if it contains something that isn't numeric, ie a string.

Thanks for the reply. Do you mean, if the underlying data stored isn't numeric? for e.g. in this case, age is stored as "string" type and I am providing a range query?

Yeh, that's not ideal.

Thanks for confirming

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