You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that in one site running elasticsuite, the results in the layered navigation didn't seem correct. For example, on a particular category, there should have been around 10 results for the colour Orange.
After investigation, I looked in to the data store in elasticsearch, and could see that for the configurable product in question, it included no records for children_attributes.
"children_attributes" : [
"indexed_attributes"
],
However, it did have children_ids
"children_ids" : [
131036,
131037,
131038
],
So, I debugged this by moving the data to a vanilla install and testing again. Same result.
I then created a new configurable product, assigning the same children, and this time, the new product included the children_attributes, but the original configurable product remained with these missing.
I figured this out in the end. It seems that if the parent item has a value for an attribute, ES does not include the values of the child in the children_attributes. So, if you're also experiencing this issue, just remove the value from the configurable product, and it should all work correctly.
I'm not sure if this is a bug or intentional? Certainly the default layered navigation doesn't work in the same way, so I'm inclined to think it may be a bug.
Sorry for the delay on this one, but if I understand correctly, we are not merging children data into the parent data when indexing, if parent product has a value for an attribute that also exists on its children.
Or maybe we do override the children value by the parent value later in the indexing process.
At the moment, this is a question, not a bug.
Tested on Magento 2.3.2 and ES 2.8.1
I noticed that in one site running elasticsuite, the results in the layered navigation didn't seem correct. For example, on a particular category, there should have been around 10 results for the colour
Orange
.After investigation, I looked in to the data store in elasticsearch, and could see that for the configurable product in question, it included no records for
children_attributes
.However, it did have
children_ids
So, I debugged this by moving the data to a vanilla install and testing again. Same result.
I then created a new configurable product, assigning the same children, and this time, the new product included the
children_attributes
, but the original configurable product remained with these missing.New product data:
Old product data:
So, this confirms it's data related. I've checked for relationship differences, and there is nothing that I can find.
Just wondering if anyone has had similar experience, or any ideas what might be responsible
The text was updated successfully, but these errors were encountered: