How to use “not equal to” in elasticsearch queries?
Example:
type.keyword:“four_wheeler” AND vehicle.keyword:$Vehicle AND company.keyword:“AUDI”
So the above query will give graph related to the company AUDI, I just want company!=“AUDI”
How to use “not equal to” in elasticsearch queries?
Example:
type.keyword:“four_wheeler” AND vehicle.keyword:$Vehicle AND company.keyword:“AUDI”
So the above query will give graph related to the company AUDI, I just want company!=“AUDI”
Hi,
You use NOT, i.e.
NOT company.keyword:"AUDI"
Marcus
Thank you so much! You saved my day
similarly to the above question, now I want use “greater than” and “less than”.
Please look into lucene query syntax.
Marcus
Thank you! I didn’t know about “lucene query”
Hi,
You can use
status : <2 (LESS THAN)
status : >2 (GRATER THAN)