The docsearch scraper structures the data in Typesense in a particular way, and so the data has to be queried a particular way at search time as well, to avoid duplicate results (mainly using group by).
To get an idea about the query patterns to use, here's a site that uses Docsearch UI:
https://rushjs.io
You want to open the browser's network console, then search for "email" in the search bar on the top right, and observe the API calls made to Typesense (search for multi_search) and you want to mimic the same query patterns (search parameters) from your own UI as well