\r\n```yaml\r\n // algolia搜索\r\n search: {\r\n provider: 'algolia',\r\n options: {\r\n appId: 'xxxxx',\r\n apiKey: 'xxxxx',\r\n indexName: 'xxxxxx'\r\n }\r\n },",[],2944,"\"Algolia Search\" cannot jump to the page","2023-09-21T00:04:13Z","https://github.com/vuejs/vitepress/issues/2944",0.7443608,{"description":3111,"labels":3112,"number":3113,"owner":3024,"repository":3025,"state":3026,"title":3114,"updated_at":3115,"url":3116,"score":3117},"我参考当前 vitepress 最新 docs config 的配置,去配置搜索,并且配置 en/zh 两个语言\n\n然后 algolia 中配置爬虫爬取网站数据后,设置上 api key,也创建出了索引。索引名也是对上的。\n\n但是请求后,响应正常,但是响应是空的,没搜索出任何内容。\n\n下面是请求的 logs,能给些如何配置 algolia 的建议么,看上去似乎是 vitepress 请求中带上了 \n\n```\n\"facetFilters\": [\n \"lang:en-US\"\n ]\n```\n\n但是 algolia 爬取的数据中,并没有 lang 字段内容,所以过滤不到数据?是我哪里没配置对么?\n\n```\n{\n \"requests\": [\n {\n \"query\": \"xmake\",\n \"indexName\": \"xmake_pages\",\n \"attributesToRetrieve\": [\n \"hierarchy.lvl0\",\n \"hierarchy.lvl1\",\n \"hierarchy.lvl2\",\n \"hierarchy.lvl3\",\n \"hierarchy.lvl4\",\n \"hierarchy.lvl5\",\n \"hierarchy.lvl6\",\n \"content\",\n \"type\",\n \"url\"\n ],\n \"attributesToSnippet\": [\n \"hierarchy.lvl1:10\",\n \"hierarchy.lvl2:10\",\n \"hierarchy.lvl3:10\",\n \"hierarchy.lvl4:10\",\n \"hierarchy.lvl5:10\",\n \"hierarchy.lvl6:10\",\n \"content:10\"\n ],\n \"snippetEllipsisText\": \"…\",\n \"highlightPreTag\": \"\u003Cmark>\",\n \"highlightPostTag\": \"\u003C/mark>\",\n \"hitsPerPage\": 20,\n \"clickAnalytics\": false,\n \"facetFilters\": [\n \"lang:en-US\"\n ]\n }\n ]\n}\n```\n\n```\n{\n \"results\": [\n {\n \"hits\": [\n ],\n \"nbHits\": 0,\n \"page\": 0,\n \"nbPages\": 0,\n \"hitsPerPage\": 20,\n \"exhaustiveNbHits\": true,\n \"exhaustiveTypo\": true,\n \"exhaustive\": {\n \"nbHits\": true,\n \"typo\": true\n },\n \"query\": \"xmake\",\n \"params\": \"query=xmake&attributesToRetrieve=%5B%22hierarchy.lvl0%22%2C%22hierarchy.lvl1%22%2C%22hierarchy.lvl2%22%2C%22hierarchy.lvl3%22%2C%22hierarchy.lvl4%22%2C%22hierarchy.lvl5%22%2C%22hierarchy.lvl6%22%2C%22content%22%2C%22type%22%2C%22url%22%5D&attributesToSnippet=%5B%22hierarchy.lvl1%3A10%22%2C%22hierarchy.lvl2%3A10%22%2C%22hierarchy.lvl3%3A10%22%2C%22hierarchy.lvl4%3A10%22%2C%22hierarchy.lvl5%3A10%22%2C%22hierarchy.lvl6%3A10%22%2C%22content%3A10%22%5D&snippetEllipsisText=%E2%80%A6&highlightPreTag=%3Cmark%3E&highlightPostTag=%3C%2Fmark%3E&hitsPerPage=20&clickAnalytics=false&facetFilters=%5B%22lang%3Aen-US%22%5D\",\n \"index\": \"xmake_pages\",\n \"renderingContent\": {\n },\n \"processingTimeMS\": 1,\n \"processingTimingsMS\":\n\n[...]\n\nResponse body has been truncated.\n```\n\n\u003Cimg width=\"775\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e2f669b0-910c-4cac-97f9-10c51c6c2f4f\" />",[],4802,"配置完 algolia 搜索,检索不出任何内容","2025-06-22T01:00:42Z","https://github.com/vuejs/vitepress/issues/4802",0.74738234,["Reactive",3119],{},["Set"],["ShallowReactive",3122],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fE7WD16D4Lp1CJAiuTPzwXjlh1TRAMVWwmKt2sDRSyH4":-1},"/vuejs/vitepress/796"]