{"id":26141,"date":"2022-10-06T09:39:09","date_gmt":"2022-10-06T13:39:09","guid":{"rendered":"https:\/\/plumrocket.com\/docs\/?p=26141"},"modified":"2022-10-06T09:39:37","modified_gmt":"2022-10-06T13:39:37","slug":"magento-2-4-5-layered-navigation-showing-incorrect-results","status":"publish","type":"post","link":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue","title":{"rendered":"Magento 2.4.5 Layered Navigation Showing Incorrect Results"},"content":{"rendered":"\n<p>You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this issue is not related to the <a href=\"https:\/\/plumrocket.com\/magento-layered-navigation\">Magento 2 Layered Navigation &amp; Product Filter<\/a> extension compatibility with Magento 2.4.5. It is caused by the Magento 2.4.5 updates to Elasticsearch and can be reproduced in native Magento functionality.<\/p>\n\n\n\n<p>In this troubleshooting article, we will describe what issues you may face and how to fix them in a few simple steps. <\/p>\n\n\n\n<h2 id=\"h-what-layered-navigation-issues-occur-on-magento-2-4-5\">What Layered Navigation Issues Occur on Magento 2.4.5<\/h2>\n\n\n\n<p>The layered navigation issues may occur when filtering products by attributes if the Display Out Of Stock products option is enabled in the Magneto backend. You can check this option in <em>Stores -&gt; Settings -&gt; Configuration -&gt; Catalog -&gt; Inventory -&gt; Stock Options -&gt; Display Out of Stock Products<\/em>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1207\" height=\"568\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png\" alt=\"Magento 2.4.5 product filter issue\" class=\"wp-image-26145\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png 1207w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1-300x141.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1-1024x482.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1-768x361.png 768w\" sizes=\"(max-width: 1207px) 100vw, 1207px\" \/><\/figure>\n\n\n\n<p>The most significant Magento 2.4.5 layered navigation issues are:<\/p>\n\n\n\n<ul><li>Filtering results are displayed incorrectly on the frontend, showing all products available in the current category and ignoring all selected attributes.<\/li><li>The product filter count is wrong, showing the total number of Magento products instead.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1207\" height=\"623\" src=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-2.png\" alt=\"Magento 2.4.5 product filter issue\" class=\"wp-image-26146\" srcset=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-2.png 1207w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-2-300x155.png 300w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-2-1024x529.png 1024w, https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-2-768x396.png 768w\" sizes=\"(max-width: 1207px) 100vw, 1207px\" \/><\/figure>\n\n\n\n<p>The same issues are reported by other users on <a href=\"https:\/\/github.com\/magento\/magento2\/issues\/35918#issuecomment-1232066874\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Magento GitHub<\/a>. <\/p>\n\n\n\n<h2 id=\"h-how-to-fix-magento-2-4-5-product-filtering\">How to Fix Magento 2.4.5 Product Filtering<\/h2>\n\n\n\n<p>The Plumrocket team has developed an extension that allows you to fix this Magento 2.4.5 layered navigation bug. It is public and available at the following link: <a href=\"https:\/\/github.com\/plumrocket\/module-layered-navigation-fix-magento-2.4.5\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">https:\/\/github.com\/plumrocket\/module-layered-navigation-fix-magento-2.4.5<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-group pr-notice pr-notice-warning\"><div class=\"wp-block-group__inner-container\">\n<p class=\"pr-notice-title\">Important Information:<\/p>\n\n\n\n<p>The provided extension is not bound with the <a href=\"https:\/\/plumrocket.com\/magento-layered-navigation\">Plumrocket Layered Navigation module<\/a>, so it can be used independently on any store.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this issue is not related to the Magento 2 Layered Navigation &amp; Product Filter extension compatibility with Magento 2.4.5. It is caused by the Magento 2.4.5 updates to Elasticsearch and can be &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Magento 2.4.5 Layered Navigation Showing Incorrect Results&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[347],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v17.2 (Yoast SEO v17.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento 2.4.5 Layered Navigation Showing Incorrect Results - Plumrocket Documentation<\/title>\n<meta name=\"description\" content=\"You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento 2.4.5 Layered Navigation Showing Incorrect Results\" \/>\n<meta property=\"og:description\" content=\"You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this\" \/>\n<meta property=\"og:url\" content=\"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue\" \/>\n<meta property=\"og:site_name\" content=\"Plumrocket Documentation\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-06T13:39:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-06T13:39:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Plumrocket\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Magento 2.4.5 Layered Navigation Showing Incorrect Results - Plumrocket Documentation","description":"You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue","og_locale":"en_US","og_type":"article","og_title":"Magento 2.4.5 Layered Navigation Showing Incorrect Results","og_description":"You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this","og_url":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue","og_site_name":"Plumrocket Documentation","article_published_time":"2022-10-06T13:39:09+00:00","article_modified_time":"2022-10-06T13:39:37+00:00","og_image":[{"url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Plumrocket","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/plumrocket.com\/docs\/#website","url":"https:\/\/plumrocket.com\/docs\/","name":"Plumrocket Documentation","description":"Extensions docs, troubleshootings etc.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/plumrocket.com\/docs\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue#primaryimage","inLanguage":"en-US","url":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png","contentUrl":"https:\/\/plumrocket.com\/docs\/wp-content\/uploads\/2022\/10\/magento-2-4-5-product-filter-issue-1.png","width":1207,"height":568},{"@type":"WebPage","@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue#webpage","url":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue","name":"Magento 2.4.5 Layered Navigation Showing Incorrect Results - Plumrocket Documentation","isPartOf":{"@id":"https:\/\/plumrocket.com\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue#primaryimage"},"datePublished":"2022-10-06T13:39:09+00:00","dateModified":"2022-10-06T13:39:37+00:00","author":{"@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8"},"description":"You may face an issue where the product filtering results are displayed incorrectly in Magento 2.4.5 version. Immediately it is worth mentioning that this","breadcrumb":{"@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting\/elasticsearch-issue#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magento 2 Extensions","item":"https:\/\/plumrocket.com\/magento-extensions"},{"@type":"ListItem","position":2,"name":"Magento 2 Layered Navigation","item":"https:\/\/plumrocket.com\/magento-layered-navigation"},{"@type":"ListItem","position":3,"name":"Documentation","item":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation"},{"@type":"ListItem","position":4,"name":"v4","item":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4"},{"@type":"ListItem","position":5,"name":"Troubleshooting","item":"https:\/\/plumrocket.com\/docs\/magento-layered-navigation\/v4\/troubleshooting"},{"@type":"ListItem","position":6,"name":"Magento 2.4.5 Layered Navigation Showing Incorrect Results"}]},{"@type":"Person","@id":"https:\/\/plumrocket.com\/docs\/#\/schema\/person\/c96fccdb89342ae6804272265723eca8","name":"Plumrocket","image":{"@type":"ImageObject","@id":"https:\/\/plumrocket.com\/docs\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10c44aa45aab391250913d982e552e53?s=96&d=mm&r=g","caption":"Plumrocket"}}]}},"_links":{"self":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26141"}],"collection":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/comments?post=26141"}],"version-history":[{"count":12,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26141\/revisions"}],"predecessor-version":[{"id":26156,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/posts\/26141\/revisions\/26156"}],"wp:attachment":[{"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/media?parent=26141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/categories?post=26141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/plumrocket.com\/docs\/wp-json\/wp\/v2\/tags?post=26141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}