Skip to content
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

Widget collection position_by_sku not applying #3401

Open
ttraskback opened this issue Oct 3, 2024 · 0 comments
Open

Widget collection position_by_sku not applying #3401

ttraskback opened this issue Oct 3, 2024 · 0 comments

Comments

@ttraskback
Copy link

After update from 2.4.6-p5 to 2.4.7-p2 pagebuilder widget carousel no longer works with position_by_sku.

Preconditions

Magento Version : EE 2.4.7-p2

ElasticSuite Version : 2.11.8.3

Environment : Developer and Production both

Steps to reproduce

  1. Crate a block that contains a carousel widget
  2. Add by sku
  3. Add skus at random in a order that is nether ascending or descending
  4. Set "Sort By" to Position

Expected result

  1. src/module-elasticsuite-virtual-category/Plugin/Widget/ProductsListPlugin.php:143 should get true
  2. Elasticsearch query should contain script to order them this way
  3. Products should be orders as you entered

Actual result

  1. src/module-elasticsuite-virtual-category/Plugin/Widget/ProductsListPlugin.php:143 Is true
  2. No script tag in elasitcsearch request
  3. Products are ordered in descending order

This is the log for the request:
curl -XPOST 'http://elasticsearch:9200/magento2_2_finnish_catalog_product/_search?pretty=true' -d '{"size":0,"query":{"constant_score":{"filter":{"bool":{"must":[{"bool":{"must":[{"bool":{"must":[],"must_not":[],"should":[{"match":{"sku.untouched":{"query":"19843","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"19844","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"19858","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"19884","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"181264","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"194488","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"198599","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"220158","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"224904","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"253491","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"253493","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"304010","minimum_should_match":"100%","boost":1}}},{"match":{"sku.untouched":{"query":"615925","minimum_should_match":"100%","boost":1}}}],"minimum_should_match":1,"boost":1}}],"must_not":[],"should":[],"boost":1,"_name":"Jos KAIKKI n\u00e4ist\u00e4 olosuhteista on TOTTA:\n SKU (sku) on yksi 19843,19844,19858,19884,181264,194488,198599,220158,224904,253491,253493,304010,615925"}},{"terms":{"visibility":[2,4],"boost":1}},{"terms":{"visibility":[2,4],"boost":1}}],"must_not":[],"should":[],"boost":1}},"boost":1}},"aggregations":{"attribute_set_id":{"terms":{"field":"attribute_set_id","size":10000,"order":{"_count":"desc"}}},"indexed_attributes":{"terms":{"field":"indexed_attributes","size":10000,"order":{"_count":"desc"}}}},"track_total_hits":true}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant