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

Yes, but it may not give the expected results as it does not compare it as a number but rather character by character. An example is that 234 < 24 < 256.