diff --git a/vendor/magento/module-search/Model/ResourceModel/Query/Collection.php b/vendor/magento/module-search/Model/ResourceModel/Query/Collection.php index 01a05c62ac3ce..824af43034adb 100644 --- a/vendor/magento/module-search/Model/ResourceModel/Query/Collection.php +++ b/vendor/magento/module-search/Model/ResourceModel/Query/Collection.php @@ -1,7 +1,7 @@ getSelect(); $select->reset(\Magento\Framework\DB\Select::FROM); $select->reset(\Magento\Framework\DB\Select::COLUMNS); - $select->distinct(true); $select->from(['main_table' => $this->getTable('search_query')], ['query_text']); $select->where('main_table.store_id IN (?)', $storeId); $select->where('main_table.num_results > 0'); diff --git a/vendor/magento/module-search/etc/db_schema.xml b/vendor/magento/module-search/etc/db_schema.xml index 2502f084ac24e..636b3cb027cc2 100644 --- a/vendor/magento/module-search/etc/db_schema.xml +++ b/vendor/magento/module-search/etc/db_schema.xml @@ -1,8 +1,8 @@ - + @@ -48,6 +48,12 @@ + + + + + + diff --git a/vendor/magento/module-search/etc/db_schema_whitelist.json b/vendor/magento/module-search/etc/db_schema_whitelist.json index dbe5beb975831..866aa43eedf0d 100644 --- a/vendor/magento/module-search/etc/db_schema_whitelist.json +++ b/vendor/magento/module-search/etc/db_schema_whitelist.json @@ -14,9 +14,10 @@ "updated_at": true }, "index": { - "SEARCH_QUERY_QUERY_TEXT_STORE_ID_POPULARITY": true, + "SEARCH_QUERY_QUERY_TEXT_STORE_ID_NUM_RESULTS_POPULARITY": true, "SEARCH_QUERY_IS_PROCESSED": true, "SEARCH_QUERY_SYNONYM_FOR": true, + "SEARCH_QUERY_QUERY_TEXT_STORE_ID_POPULARITY": false, "SEARCH_QUERY_STORE_ID_NUM_RESULTS_POPULARITY": true, "SEARCH_QUERY_STORE_ID": false, "SEARCH_QUERY_STORE_ID_POPULARITY": false