解決策
この問題を修正するには、is_filterable
(レイヤーナビゲーションで使用)および filterable_in_search
(検索結果レイヤーナビゲーションで使用)を「0」(使用しない)に設定する必要があります。 これを行うには、次の手順を実行します。
-
データベースバックアップを作成します。
-
phpMyAdmin などのデータベースツールを使用するか、コマンドラインから手動で DB にアクセスして、次の SQL クエリを実行します。
UPDATE catalog_eav_attribute AS cea INNER JOIN eav_attribute AS ea ON ea.attribute_id = cea.attribute_id SET cea.is_filterable = 0, cea.is_filterable_in_search = 0 WHERE (cea.is_filterable = 1 OR cea.is_filterable_in_search = 1) AND frontend_input NOT IN ('boolean', 'multiselect', 'select', 'price');
-
次のコマンドを使用して、カタログ検索の完全な再インデックスを実行します。
bin/magento indexer:reindex catalogsearch_fulltext
-
次を実行してキャッシュをクリーンアップ
bin/magento cache:clean
または、Commerce管理の システム/ツール/キャッシュ管理 で設定します。
これで、問題なくカタログ検索を実行できるようになります。
recommendation-more-help