Elasticsearch query string query with not equal to? February 2, 2023 by Tarik You need to use the NOT operator, like this: !(name:"Fred") or NOT (name:"Fred")