This PR introduces significant updates and refinements to the app's search functionality. Key changes include:
Refactored the codebase to optimize the structure and logic for populating tutorials.
Added a /search route to handle search results.
Implemented search functionality within the MainNavbar and MiniNavbar components.
Enhanced the SearchResultsComponent to process and display search queries efficiently.
Simplified the logic for populating search results to ensure better performance.
Added a fetchAndIndexTutorials action to the App component to streamline tutorial fetching and indexing.
Refactored methods within the Elasticlunr class to improve search functionality.
Related Issue
This PR is related to an issue that aims to implement and optimize the search functionality for tutorials based on tags and titles using Elastic Lunr.
Closes #149
Motivation and Context
These changes are necessary to provide users with a robust search experience. The existing search functionality was incomplete, making it difficult for users to find tutorials by tags and titles. By fully implementing Elastic Lunr, the app now offers a faster and more accurate search mechanism, improving overall user experience.
How Has This Been Tested?
Tested locally to ensure that the search functionality works as expected across various components.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
Description
This PR introduces significant updates and refinements to the app's search functionality. Key changes include:
Related Issue
This PR is related to an issue that aims to implement and optimize the search functionality for tutorials based on tags and titles using Elastic Lunr. Closes #149
Motivation and Context
These changes are necessary to provide users with a robust search experience. The existing search functionality was incomplete, making it difficult for users to find tutorials by tags and titles. By fully implementing Elastic Lunr, the app now offers a faster and more accurate search mechanism, improving overall user experience.
How Has This Been Tested?
Tested locally to ensure that the search functionality works as expected across various components.
Types of changes
Checklist: