Skip to content

Commit 166b346

Browse files
committed
Build: Fix deranking of blog posts in Typesense search index
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.
1 parent 280e721 commit 166b346

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docsearch.config.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"index_name": "qunitjs_com",
33
"start_urls": [
4-
{ "url": "https://qunitjs.com", "page_rank": 20 },
5-
{ "url": "https://qunitjs.com/blog/", "selectors_key": "blog", "page_rank": 1 }
4+
{ "url": "https://qunitjs.com/blog/", "selectors_key": "blog", "page_rank": 1 },
5+
{ "url": "https://qunitjs.com", "page_rank": 20 }
66
],
77
"selectors": {
88
"lvl0": "h1",

0 commit comments

Comments
 (0)