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

Your IP addresses don't have the ip datatype. You need to fix this before trying running ranges.