This creates the below query, which is obvious wrong:
...
"match": {
"-cs-ua-device": "Spider"
}
...
The above works in case I use "Add Filter" UI, and creates this query:
...
"must_not": [
{ "match_phrase": { "cs-ua-device.keyword": { "query": "Spider" } } }
]
...
Have you opted in to the new language features (e.g. autocomplete)? If so, the simplified syntax no longer supports - and +, you'll just use not instead.
Yep, I turned it on. Looks you are right. So the only thing I would add here is that I would expect this info in relevant documentation. By the way, is there a list of such changes that caused by new autocomplete feature?
This doc explains the new syntax. We're also working on better error messages that will detect when you're using the outdated syntax and link you to info about what has changed.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.