From 7d65d5815509e1e076c1b103f36d3980780d4b94 Mon Sep 17 00:00:00 2001 From: Bhushan Palsapure Date: Wed, 8 Jul 2026 15:16:16 +0100 Subject: [PATCH] bug: Issue-2367 - Fixed the search functionality --- package.json | 2 + src/App.jsx | 2 + src/components/Footer/index.jsx | 3 - src/components/Header/index.jsx | 5 +- src/components/Home/index.jsx | 4 +- src/components/SearchResults/index.jsx | 129 +++++++++++++++++++++++++ src/components/searchIndex.js | 63 ++++++++++++ 7 files changed, 199 insertions(+), 9 deletions(-) create mode 100644 src/components/SearchResults/index.jsx create mode 100644 src/components/searchIndex.js diff --git a/package.json b/package.json index 5c1dae6..cde103a 100644 --- a/package.json +++ b/package.json @@ -42,11 +42,13 @@ "@visual-framework/vf-sass-config": "2.6.1", "@visual-framework/vf-sass-starter": "^0.1.30", "@visual-framework/vf-search": "^1.0.0", + "@visual-framework/vf-search-client-side": "^2.0.2", "@visual-framework/vf-stack": "^3.0.0", "@visual-framework/vf-tabs": "^2.1.5", "@visual-framework/vf-text": "^1.1.1", "@visual-framework/vf-u-fullbleed": "^1.2.2", "@visual-framework/vf-utility-classes": "2.0.0", + "lunr": "^2.3.9", "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.21.1", diff --git a/src/App.jsx b/src/App.jsx index 9fc55e9..ee4149b 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -12,6 +12,7 @@ import VFBlockquote from './components/VFBlockquote'; import VFHero from './components/VFHero'; import VFBanner from './components/VFBanner'; import VFTabs from './components/VFTabs'; +import SearchResults from './components/SearchResults'; // import VFChatbot from './vf-chatbot-components/vf-chatbot/vf-chatbot.react'; import VFChatbot from '@visual-framework/vf-chatbot/vf-chatbot.react'; @@ -137,6 +138,7 @@ function App() { } /> } /> } /> + } />