reference
Can anyone please tell me the query for not matching.
Like I need {"match": {"region": "EAST"}} exactly opposite.
Eg: match regions without EAST
reference
Can anyone please tell me the query for not matching.
Like I need {"match": {"region": "EAST"}} exactly opposite.
Eg: match regions without EAST
This is not really an x-pack issue, I will move this over to Elasticsearch.
Furthermore take a look at the bool query, specifically the must_not
part.
--Alex
Yes, I had tried with must_not but it is throwing the error **Visualize: [must_not] query malformed, no start_object after query name
**
query I wrote is {"must_not": [{"match": {"attr_details.keyword": "Sales"}}]}
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.