Creating Variable from IP range, datasource ElasticSearch

Hi,
Is there a way to make a variable with IP range in query? Single IP address does work.

What does not work:
{“find”: “terms”, “field”: “IP”, “query”: “IP:[xxx.xxx.xxx.xxx TO xxx.xxx.xxx.xxx],[yyy.yyy.yyy.yyy TO yyy.yyy.yyy.yyy]”}
What does work:
{“find”: “terms”, “field”: “IP”, “query”: “IP:[xxx.xxx.xxx.xxx]”}