Unable to get gte and lte from elastic Java API in range query

As far as I can see there are a couple of issues here:

  • The value in the query is not in the interval specified for the example document.
  • If you are looking for a range that covers the IP in the query I think you may have mixed up the lte and gte clauses and should flip them.