Keyword Highlighting Issue on Docusaurus with Typesense
TLDR Inas experienced trouble with keyword highlighting on a Docusaurus doc site using Typesense. After a detailed discussion, Jason clarified that the desired functionality isn't possible to implement in a cross-browser compatible way without modifications to Docusaurus core.

Jun 14, 2022 (15 months ago)
Inas
12:30 AMIt works, but how can I show highlight of search keyword?
Jason
12:31 AMJason
12:32 AMJason
12:32 AMInas
12:33 AM{
"searches": [
{
"collection": "docs",
"q": "openapi",
"query_by": "hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content",
"include_fields": "hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content,anchor,url,type,id",
"highlight_full_fields": "hierarchy.lvl0,hierarchy.lvl1,hierarchy.lvl2,hierarchy.lvl3,hierarchy.lvl4,hierarchy.lvl5,hierarchy.lvl6,content",
"group_by": "url",
"group_limit": 3,
"filter_by": "language:=en && docusaurus_tag:=[default,docs-default-1.5.0.dev]"
}
]
}
Inas
12:35 AMJason
12:39 AMInas
12:39 AMInas
12:40 AMJason
12:40 AMInas
12:44 AMThanks Jason for the answer 🙂

Jason
12:45 AMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Issues with migrating search from Algolia to Typesense
Nacho encountered issues with migrating search from Algolia to Typesense, including a custom component that interfered with the search and an incorrect element being used as the title. Jason provided guidance on removing the component and adjusting search configuration.


Typesense Integration Issue in Docusaurus
Benjamin experienced an error implementing Typesense (TS) in Docusaurus. Jason identified the correct placement of the 'typesense' key within the 'themeConfig' within the docusaurus config file, resolving the issue.



Docusaurus Integration - Search Results Ordering & Missing Highlight
Abhishek reported issues with search result ordering and missing highlights in docusaurus integration. Jason explained the result differences between modal and search page. Abhishek submitted a fix for the highlight issue.
Configuring Docusaurus and Typesense for a Documentation Site
Apoorv had trouble adding search functionality to a Docusaurus documentation website with Typesense. Jason worked through several troubleshooting steps, identified issues with Apoorv's setup, and ultimately provided solutions that successfully implemented the search bar function.

Issues with Typesense Search Results and Upcoming Enhancements
Stefan encountered problems with Typesense search results. Kishore Nallan recently refracted the text matching engine to improve this issue, highlighted upcoming features in their 0.23.0 release, and offered Dan a RC test run. Upgrades were also made on Typesense Cloud UI by Jason.


