Typesense Search Results Overflow Issue in Docusaurus Project
TLDR Marco reported search results overflowing for some text and suspected it's related to lists. Jason suggested checking for uncommon unicode line breaks and adjusting scraper config, but issue remains unresolved.
Apr 27, 2023 (7 months ago)
Marco
02:48 PMI am using typesense in a docusaurus project. I have integrated the docusaurus theme to add a search bar to the navigation and it works mostly well.
Only problem I have is that for some text, the search results overflow over the tile allocated to a search result. I wasn't able to identify why that might be.
Any idea where to start looking for the root cause and a potential solution?
This is an example of the problem:
Jason
05:19 PMApr 28, 2023 (7 months ago)
Marco
09:00 AMFor the example above, the html of the search popup has this result:
Marco
09:00 AMMarco
09:02 AMJason
05:12 PMli
as a dom element to scrape independently in your docsearch scraper config?Marco
06:33 PMApr 29, 2023 (7 months ago)
Jason
03:16 AMMay 02, 2023 (7 months ago)
Marco
10:48 AM"lvl1": "article h1, header h1",
"lvl2": "article h2",
"lvl3": "article h3",
"lvl4": "article h4",
"lvl5": "article h5, article td:first-child",
"lvl6": "article h6",
"text": "article p, article li, article td:last-child"
Marco
10:50 AMarticle li
, which should match the list-element in question.The full xPath of that list item is
/html/body/div/div[2]/div/div/main/div/div/div[1]/div/article/div[2]/div[1]/div/div/div/div/div/table/tbody/tr[1]/td/ul/li[2]
Typesense
Indexed 3015 threads (79% resolved)
Similar Threads
Docsearch Scrapper Metadata Configuration and Filter Problem
Marcos faced issues with Docsearch scrapper not adding metadata attributes and filtering out documents without content. Jason helped fix the issue by updating the scraper and providing filtering instructions.
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.
Solving Typesense Docsearch Scraper Issues
Sandeep was having issues with Typesense's docsearch scraper and getting fewer results than with Algolia's scraper. Jason helped by sharing the query they use and advised checking the running version of the scraper. The issue was resolved when Sandeep ran the non-base regular docker image.
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.
Duplicate Search Results Issue in Web Crawler Configuration
Lane is dealing with problems related to duplicate search results from their web crawler. Jason suggested that links in the sitemap might cause this issue, but this remains unresolved.