Skip to content

Commit 8355351

Browse files
JanPetrbsuravech
authored andcommitted
Apply ruleContexts in autocomplete (#1133)
1 parent b12c38f commit 8355351

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

js/algoliasearch/internals/frontend/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ document.addEventListener("DOMContentLoaded", function (e) {
176176
if (section.name === "products") {
177177
options.facets = ['categories.level0'];
178178
options.numericFilters = 'visibility_search=1';
179+
options.ruleContexts = ['', 'magento_filters']; // Empty context to keep BC for already create rules in dashboard
179180

180181
source = {
181182
source: $.fn.autocomplete.sources.hits(algolia_client.initIndex(algoliaConfig.indexName + "_" + section.name), options),

0 commit comments

Comments
 (0)