Docusaurus Integration - Prioritise Exact Matches
TLDR Abhishek wanted to prioritize exact matches in Docusaurus integration search results. Jason investigated but couldn't resolve the issue yet.
Mar 10, 2023 (6 months ago)
Abhishek
04:18 PMTeam
to show up before Team Collaborator
.Abhishek
04:19 PM "start_urls": [
{
"url": " ",
"selectors_key": "glossary_selector",
"page_rank": 5000000
},
{
"url": " ",
"page_rank": 1
}
],
"sitemap_urls": [
""
],
"sitemap_alternate_links": true,
"end_urls": [
""
],
"selectors": {
"default": {
"lvl0": {
"selector": "invalid",
"default_value": "Documentation"
},
"lvl1": {
"selector": "(//a[contains(@class, 'menu__link--active')])[1]",
"type": "xpath"
},
"lvl2": {
"selector": "(//a[contains(@class, 'menu__link--active')])[2]",
"type": "xpath"
},
"lvl3": {
"selector": "(//a[contains(@class, 'menu__link--active')])[3]",
"type": "xpath"
},
"lvl4": {
"selector": "(//a[contains(@class, 'menu__link--active')])[4]",
"type": "xpath"
},
"lvl5": {
"selector": "(//a[contains(@class, 'menu__link--active')])[5]",
"type": "xpath"
},
"lvl6": {
"selector": "(//a[contains(@class, 'menu__link--active')])[6]",
"type": "xpath"
},
"text": "article p, article li, article td:last-child"
},
"glossary_selector": {
"lvl0": {
"selector": "h4"
},
"text": "article p, article td:last-child"
}
Mar 11, 2023 (6 months ago)
Jason
12:10 AMCould you then click on the preview tab, click on the output and post it here?
Mar 12, 2023 (6 months ago)
Abhishek
03:08 AMcurl '' \
-H 'authority: ' \
-H 'accept: application/json, text/plain, */*' \
-H 'accept-language: en-US,en;q=0.9,fr;q=0.8,da;q=0.7' \
-H 'content-type: text/plain' \
-H 'origin: ' \
-H 'referer: ' \
-H 'sec-ch-ua: "Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "macOS"' \
-H 'sec-fetch-dest: empty' \
-H 'sec-fetch-mode: cors' \
-H 'sec-fetch-site: cross-site' \
-H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36' \
--data-raw '{"searches":[{"collection":"clerky-typesense-search","q":"team","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-current]"}]}' \
--compressed
Abhishek
03:09 AMMar 14, 2023 (6 months ago)
Abhishek
03:28 PMMar 15, 2023 (6 months ago)
Jason
01:51 AMMar 21, 2023 (6 months ago)
Jason
03:48 AM0.10.0-1
of docusaurus-theme-search-typesense
and let me know how it goes?I’ve merged your PR to fix the blank results issue, and I’ve also fixed the ranking issue you pointed out above
Mar 22, 2023 (6 months ago)
Abhishek
10:23 AMJason
03:41 PMTypesense
Indexed 2764 threads (79% resolved)
Similar Threads
Inconsistent Search Results in Typesense UI vs Dashboard
Abhishek reports inconsistent search results in the typesense UI vs dashboard integration when using page rank with Docusaurus plugin. Jason suggests creating a GitHub issue while Abhishek seeks clarification on prioritizing exact matches.
Adjusting Text Match Score Calculation in TypeSense
Johannes wanted to modify the Text Match Score calculation in TypeSense to improve search results returns. With counsel from Jason and Kishore Nallan, various solutions were proposed, including creating a Github issue, attempting different parameters, and updating Docker to a new version to resolve the matter.

Phrase Search Relevancy and Weights Fix
Jan reported an issue with phrase search relevancy using Typesense Instantsearch Adapter. The problem occurred when searching phrases with double quotes. The team identified the issue to be related to weights and implemented a fix, improving the search results.


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.


Issues With `text_match` Scoring for Search Queries in Typesense
Colin encountered issues with the `text_match` scoring on Typesense v0.23.1. Jason and Kishore Nallan identified a potential issue with numeric overflow in the text match score and applied an unverified patch. The final resolution is unclear.


