Skip to content

Commit

Permalink
Build: Fix deranking of blog posts in Typesense search index
Browse files Browse the repository at this point in the history
Follows-up 5f810e5. It set the page_rank low correctly, but the
order matters. First match decides.

I based this on https://github.com/jquery/jqueryui.com/blob/b53c29bcfe80618608c94fa3aba19356c92fa5c2/docsearch.config.json, where the important one is listed first, but
I failed to realize that the order isn't sensitive there since the
content is on two separate domains. For us the order matters as one
is a subset of the other.
  • Loading branch information
Krinkle committed Jan 18, 2025
1 parent 280e721 commit 166b346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docsearch.config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"index_name": "qunitjs_com",
"start_urls": [
{ "url": "https://qunitjs.com", "page_rank": 20 },
{ "url": "https://qunitjs.com/blog/", "selectors_key": "blog", "page_rank": 1 }
{ "url": "https://qunitjs.com/blog/", "selectors_key": "blog", "page_rank": 1 },
{ "url": "https://qunitjs.com", "page_rank": 20 }
],
"selectors": {
"lvl0": "h1",
Expand Down

0 comments on commit 166b346

Please sign in to comment.