优化搜索的筛选逻辑

This commit is contained in:
boybook
2025-03-17 18:46:36 +08:00
parent a5a1abd2eb
commit 5682807b98
2 changed files with 32 additions and 9 deletions

View File

@@ -7,7 +7,6 @@ export default defineConfig({
title: "我的世界中国版 ModSDK",
description: "我的世界中国版 ModSDK Wiki 镜像",
ignoreDeadLinks: true,
cleanUrls: false,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
@@ -28,7 +27,11 @@ export default defineConfig({
options: {
appId: 'F8HD84CUON',
apiKey: 'ccaf9255472c593d8a8b0724a940bb29',
indexName: 'netease-modsdk'
indexName: 'netease-modsdk',
searchParameters: {
// 筛选掉 rootType 为 mconline 的项目
facetFilters: ['rootType:-mconline']
}
}
}
}