Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix field query

Jakub Draganekf9c476daa3ee
diff --git a/saleor/search/backends/elasticsearch.py b/saleor/search/backends/elasticsearch.py
index 82207c006a..efe553a0dd 100644
--- a/saleor/search/backends/elasticsearch.py
+++ b/saleor/search/backends/elasticsearch.py
@@ -222,7 +222,9 @@ class ElasticsearchSearchQuery(BaseSearchQuery):
return {
'bool': {
'must_not': {
- 'field': column_name,
+ 'term': {
+ 'field': column_name,
+ }
}
}
}
@@ -238,7 +240,9 @@ class ElasticsearchSearchQuery(BaseSearchQuery):
return {
'bool': {
'must_not': {
- 'field': column_name,
+ 'term': {
+ 'field': column_name,
+ }
}
}
}