We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19282e8 commit ca4ec8bCopy full SHA for ca4ec8b
.changeset/five-glasses-shout.md
@@ -0,0 +1,5 @@
1
+---
2
+"@astrojs/starlight": patch
3
4
+
5
+Fixes default ranking of merged indexes when using multi-site search
packages/starlight/schemas/pagefind.ts
@@ -67,7 +67,8 @@ const pagefindIndexOptionsSchema = z.object({
67
/**
68
* Configure how search result rankings are calculated by Pagefind.
69
*/
70
- ranking: pagefindRankingWeightsSchema.optional(),
+ // We apply a default value to merged indexes in order to share the same ranking for them and the current site when not set explicitly.
71
+ ranking: pagefindRankingWeightsSchema.default({}),
72
});
73
74
const pagefindSchema = z.object({
0 commit comments