A proof of concept Global Search Node with search-as-you-type functionality, powered by Typesense.
This repository contains a showcase project based on the public Typesense OpenLibrary dataset that can be found 👉 here.
This project includes the following custom Control Nodes:
HeaderSearchBar
, which can be used as a Call to Action in order to get the user input (consisting in a click or typing the/
character) to spawn/activate a Search scene.SearchBarContainer
, a plug'n'play search bar containing the logic to call whatever search engine's REST APIs and map a result to a generic object, in order to list the result outside of the container itself.SearchResultListContainer
, a scrollable container that will show a list of result as clickable elements. Results are categorized through thecategory_attribute
property which represents the attribute that each result should have, and that will be used to group each element based on the user-definedcategories
.SearchResultCategoryContainer
, an node containing a list of result for a single category.SearchResultContainer
, an node containing a single search result as a clickable object.SearchStatsWidget
, a plug'n'play widget showing some stats about each search, including number of results, query used for the search, and the search time.GlobalSearchContainer
, a plug'n'play scene containing all the nodes previously described.