Skip to content

"Sort By: Price" issues with Configurable Products does not work without forced reindex #23180

Closed
@lbajsarowicz

Description

@lbajsarowicz

Preconditions

Verified with 2 clean installations (no 3rd party modules)

  • Magento 2.3.1 CE
  • ElasticSearch 5.6.14
  • Production Mode
  • Index on Schedule

And:

  • Magento 2.2.6 CE
  • ElasticSearch 5.6.14
  • Production Mode
  • Index on Schedule

Steps to reproduce

  1. Install clean Magento 2 instance
  2. Deploy Sample Data
  3. Run setup:upgrade (to install sample data)
  4. Enter any category, choose "Price" as a "Sort By"

Expected Result

  1. Products are displayed from the cheapest to the most expensive
    image

Actual Result

  1. Getting products with prices: 29.00, 22.00, 28.00, 24.00
    image

Notice that also star rating is missing before manual reindex.

Under the hood, the difference is quite big:

image

Before: BEFORE_result.json.txt

After AFTER_result.json.txt

Workaround

Run bin/magento index:reindex until products are in the right order (sometimes more than once)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions