Magento2: ElasticSearch When applying the extra filter to the product listing, Magento keeps the same page number

Created on 28 Apr 2020  路  9Comments  路  Source: magento/magento2

ElasticSearch 6 filter issue

Preconditions (*)

  • Magento 2.3.3
  • PHP 7.2
  • elasticsearch 6+
  • Steps to reproduce (*)

    1. Enter listing with n products,
    2. Move to the last page of results
    3. Select filter in the sidebar that filters out most of the products

    Expected result (*)


    1.I'm redirected either to last page of results or first page of the listing (so I see any products)

    Actual result (*)

    1. I'm still at the last page of results before adding the filter, so the message says that there are no search results for my query

    Here is the video: Desktop-2020-4-28-15-16-12.webm.zip

    Catalog Swatches Fixed in 2.4.x Clear Description Confirmed Format is valid Ready for Work P3 done Reported on 2.3.3 Reproduced on 2.4.x S2 Done

    Most helpful comment

    I created PR that fixes this case. Important here is that issue occurs only with swatch filter, same as color on video attached in description.

    All 9 comments

    Hi @santosh-gaggle. Thank you for your report.
    To help us process this issue please make sure that you provided the following information:

    • [ ] Summary of the issue
    • [ ] Information on your environment
    • [ ] Steps to reproduce
    • [ ] Expected and actual results

    Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

    @magento give me 2.4-develop instance - upcoming 2.4.x release

    For more details, please, review the Magento Contributor Assistant documentation.

    @santosh-gaggle do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

    • [ ] yes
    • [ ] no

    Seems like might be fixed by https://github.com/magento/magento2/pull/26988, but not sure

    Seems like might be fixed by #26988, but not sure

    checked but still the same issue

    @ihor-sviziev No, because in my PR I fixed situation when you change amount of items on page, here it is about adding extra filters. And previously it was working by coincidence. Now, when Magento is expected to work properly with pagination - we need to address also that issue.

    I created PR that fixes this case. Important here is that issue occurs only with swatch filter, same as color on video attached in description.

    Hi @ihor-sviziev. Thank you for working on this issue.
    In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

    • [x] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
      DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.
    • [x] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

    • [x] 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

    • [x] 4. Verify that the issue is reproducible on 2.4-develop branch

      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and _stop verification process here_!

    • [x] 5. Add label Issue: Confirmed once verification is complete.

    • [x] 6. Make sure that automatic system confirms that report has been added to the backlog.

    :white_check_mark: Confirmed by @ihor-sviziev
    Thank you for verifying the issue. Based on the provided information internal tickets MC-33806 were created

    Issue Available: @ihor-sviziev, _You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself._

    Thanks @Bartlomiejsz ,
    Now this issue fixed and working well ...:)

    Hi @santosh-gaggle. Thank you for your report.
    The issue has been fixed in magento/magento2#28015 by @Bartlomiejsz in 2.4-develop branch
    Related commit(s):

    The fix will be available with the upcoming 2.4.1 release.

    Was this page helpful?
    0 / 5 - 0 ratings

    Related issues

    PushEngineering picture PushEngineering  路  3Comments

    andreaskoch picture andreaskoch  路  3Comments

    salelsol picture salelsol  路  3Comments

    kirashet666 picture kirashet666  路  3Comments

    BenSpace48 picture BenSpace48  路  3Comments