I have a working search consisting of the first 3 lines of this:
= Search(using=client, index="exchange-*")
.query("match", type="iis")
.filter("range", ** {'@timestamp': {'gte': 'now-1440m', 'lt': 'now'}})
.exclude("match", geoip.country_name="United States")
Adding the 4th line, causes this syntax error.
.exclude("match", geoip.country_name="United States")
^
SyntaxError: keyword can't be an expression
I can't find an example of the proper syntax, I guess geoip.xxx is called a composite field?
Be gentile, I'm fairly new to elasticsearch, I've used python a lot, but for pretty simple things. I try to make all problem simple....
Thanks