Skip to content

Custom Attributes - Used for Sorting in Product Listing - ElasticSearch Sort Order Incorrect #33810

Closed
@kestraly

Description

@kestraly
  1. Magento 2.3x - 2.4x
  2. ElasticSearch 7
  3. Using custom attributes to sort catalog

Steps to reproduce (*)

  1. Enable "Used for Sorting in Product Listing" for attribute "color" - Dropdown
  2. Add color to attribute set default
  3. Populate attribute color option values in no specific order, such as grey, black, blue, orange, green, yellow
  4. Assign products to use attribute color
  5. Reindex bin/magento index:reindex
  6. Go to frontend category and select color from the sort by options

Expected result (*)

  1. Products sorted according to their color attribute option name
  2. Attribute Option Values Added Random Order: report-3
  3. Attribute Option Values Re Ordered To Be Alphabetical: report-4

Actual result (*)

  1. Products are sorted by their attribute option value id, in essense sorted in the order they were added to the attribute
  2. Incorrectly sorted report-2

 

Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

  • < > Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • < > Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • < > Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • < > Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Labels

Area: ProductComponent: AttributesComponent: ElasticsearchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.xIndicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions