E.g. .es(StatusCode:[200 TO 299]) will error on the UI and not work. Neither .es(q=StatusCode:[200 TO 299]) works.
You need to quote strings with spaces in them:
.es(q='StatusCode:[200 TO 299]')
Worth adding that to the docs (on website, or on module)
Most helpful comment
Worth adding that to the docs (on website, or on module)