Trying to add simple NOT capability to my elasticsearch interaction and I'm
getting strange errors from using NOT outside of an OR statement, which I
think I'm using correctly from the documentation.
Wrap OR with NOT and get an error
curl -XPOST http://localhost:9200/tests/test/_search -d ' {"query": {
"filtered": {"query": {"match_all": {}},
"filter": {"not": {"or": [{"term": {"v1": "test1"}}]}}
} } }'
Failed to execute phase [query], total failure; shardFailures
[CUT]
nested: QueryParsingException[[tests] [or] filter does not support [v1]];
If i wrap the inside of the OR with an AND works fine
curl -XPOST http://locahost:9200/tests/test/_search -d ' {"query": {
"filtered": {"query": {"match_all": {}},
"filter": {"not": {"or": [{"and":[{"term": {"v1": "test0"}}]}]}}
} } }'
Bug? or are you not allowed to NOT certain things?
Trying to add simple NOT capability to my elasticsearch interaction and I'm
getting strange errors from using NOT outside of an OR statement, which I
think I'm using correctly from the documentation.
Wrap OR with NOT and get an error
curl -XPOSThttp://localhost:9200/tests/test/_search-d ' {"query": {
"filtered": {"query": {"match_all": {}},
"filter": {"not": {"or": [{"term": {"v1": "test1"}}]}}
} } }'
Bug? or are you not allowed to NOT certain things?
Trying to add simple NOT capability to my elasticsearch interaction and
I'm
getting strange errors from using NOT outside of an OR statement, which I
think I'm using correctly from the documentation.
Wrap OR with NOT and get an error
curl -XPOSThttp://localhost:9200/tests/test/_search-d ' {"query": {
"filtered": {"query": {"match_all": {}},
"filter": {"not": {"or": [{"term": {"v1": "test1"}}]}}
} } }'
Bug? or are you not allowed to NOT certain things?
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.