-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Price filter does not filter the price on customer group #1096
Comments
It does work correctly if I change the "post_filter": {
"bool": {
"must": [
{
"nested": {
"query": {
"bool": {
"must": [
{
"range": {
"price.price": {
"from": "15",
"to": "29",
"include_lower": true,
"include_upper": false,
"boost": 1.0
}
}
},
{
"terms": {
"price.customer_group_id": [
0
],
"boost": 1.0
}
}
]
}
},
"path": "price",
"ignore_unmapped": false,
"score_mode": "none",
"boost": 1.0
}
},
{
"terms": {
"option_text_article_type": [
"Sous-gants"
],
"boost": 1.0
}
}
],
"disable_coord": false,
"adjust_pure_negative": true,
"boost": 1.0
}
}, Though I'm not an expert in Elasticsearch so I'm not sure this would be the right way to do it. |
Hello @nicobatty interesting issue, and interesting hypothesis of resolution. Always happy to see people digging inside our engine, so thank you for submitting a such detailed issue. I'll have a look on this one. |
Associated PR have been merged and will be part of the next minor release. Thank you for supporting our module ! |
After I started debugging the ElasticSearch requests, I noticed that there were no filter on the customer group when filtering the price.
In the response, I get two hits with this price list for example:
The issue is that I'm navigating as a customer_group_id = 0 and a price range of 15-29 and 10.2 is not part of that range. It's only part of the range for the customer_group_id : 2 or 3.
Any idea on how to fix this?
The text was updated successfully, but these errors were encountered: