From 43ab39b68becf47a04103e9a799a6b5c20ce2606 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Thu, 21 Sep 2023 08:39:08 -0500 Subject: [PATCH] Filter Results by component Closes gh-156 --- src/js/vendor/search.bundle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/vendor/search.bundle.js b/src/js/vendor/search.bundle.js index 350d3fb..b133411 100644 --- a/src/js/vendor/search.bundle.js +++ b/src/js/vendor/search.bundle.js @@ -224,7 +224,7 @@ // selected search.addWidgets([ instantsearch.widgets.configure({ - facetFilters: [`version:${config.pageVersion}`], + facetFilters: [`version:${config.pageVersion}`, `component:${config.pageComponent}`], attributesToSnippet: ['content'], attributesToHighlight: ['hierarchy'], distinct: true,