\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.7160752,{"description":3064,"labels":3065,"number":3066,"owner":3023,"repository":3024,"state":3025,"title":3067,"updated_at":3068,"url":3069,"score":3070},"### Describe the bug\r\n\r\nI am experiencing an issue with the integrated search component (Algolia).\r\nThe search function is not working properly, as it returns **zero results** when I use the web interface in my recently created project with Vitepress. \r\n\r\nHowever, if I perform a search using the API or on Algolia's website, the search function works correctly and returns results.\r\n\r\nIt's possible that there may be an issue with the search component in Vitepress that's causing this problem. \r\n\r\nI wanted to bring this to your attention in the hopes that it can be addressed and fixed as soon as possible. \r\n\r\n### Reproduction\r\n\r\n- Create an Algolia account\r\n- Configure the algolia section with index, API key and app id.\r\n - ```\r\n appId: '5D6FRGxxxx', \r\n apiKey: 'e04451b589c484090xxxxxxxxxxxxxxx', \r\n indexName: 'csspills'\r\n ```\r\n- Create the index (both manually / via API)\r\n - ```\r\n [\r\n {\r\n title: 'Pill 1 CLI',\r\n description: 'Create a new project with the CLI',\r\n tags: [ 'demo1', 'cli' ]\r\n },\r\n {\r\n title: 'Pill 2 AWS',\r\n description: 'Create a new AWS project from the command line',\r\n tags: [ 'demo2', 'AWS' ]\r\n }\r\n ]\r\n ```\r\n- Start the local server\r\n- Search \r\n\r\n\r\n\r\n\r\n### Expected behavior\r\n\r\nShow results after searching\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.2.1\r\n CPU: (8) x64 Apple M1\r\n Memory: 7.73 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node\r\n Yarn: 1.22.19 - /opt/homebrew/bin/yarn\r\n npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm\r\n Browsers:\r\n Brave Browser: 107.1.45.133\r\n Chrome: 109.0.5414.119\r\n Chrome Canary: 112.0.5609.0\r\n Firefox: 95.0.2\r\n Firefox Developer Edition: 108.0\r\n Safari: 16.3\r\n```\r\n\r\n\r\n### Additional context\r\n\r\nUI Request: \r\n```\r\nhttps://5d6frgc6t9-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20JavaScript%20(4.8.5)%3B%20Browser%20(lite)%3B%20docsearch%20(3.3.3)%3B%20docsearch-react%20(3.3.3)%3B%20docsearch.js%20(3.3.3)&x-algolia-api-key=e04451b589c484090xxxxxxxxxxxxxxx&x-algolia-application-id=5D6FRGxxxx\r\n```\r\nRequest Method: `POST`\r\nStatus Code: `200 OK`\r\n\r\n\r\n\r\nAPI Request (Node.js)\r\n\r\n\r\n```\r\n{\r\n hits: [\r\n {\r\n title: 'Pill 2 AWS',\r\n description: 'Create a new AWS project from the command line',\r\n tags: [Array],\r\n objectID: '85344354000',\r\n _highlightResult: [Object]\r\n }\r\n ],\r\n nbHits: 1,\r\n page: 0,\r\n nbPages: 1,\r\n hitsPerPage: 20,\r\n exhaustiveNbHits: true,\r\n exhaustiveTypo: true,\r\n exhaustive: { nbHits: true, typo: true },\r\n query: 'AWS',\r\n params: 'query=AWS',\r\n renderingContent: {},\r\n processingTimeMS: 1,\r\n processingTimingsMS: {\r\n getIdx: { load: [Object], total: 1 },\r\n request: { roundTrip: 30 },\r\n total: 1\r\n },\r\n serverTimeMS: 1\r\n}\r\n```\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[],1970,"Algolia search is broken","2023-03-03T12:16:55Z","https://github.com/vuejs/vitepress/issues/1970",0.7359494,{"description":3072,"labels":3073,"number":3075,"owner":3023,"repository":3024,"state":3025,"title":3076,"updated_at":3077,"url":3078,"score":3079},"### Describe the bug\n\nThe current algolia search index is wrong.\r\nA lot of pages have been moved in the last release.\r\n\r\nIf you use the search you get linked to wrong pages.\r\n\r\n\r\n\n\n### Reproduction\n\nGo to https://vitepress.vuejs.org and search for \"useData\". Click on the suggested page and you get forwarded to a non existing page.\n\n### Expected behavior\n\nYou should be forwarded to the correct page.\n\n### System Info\n\n```shell\nSystem:\r\n OS: Windows 10 10.0.19045\r\n CPU: (32) x64 AMD Ryzen 9 3950X 16-Core Processor\r\n Memory: 45.51 GB / 63.91 GB\r\n Binaries:\r\n Node: 16.14.2 - C:\\Program Files\\nodejs\\node.EXE\r\n Yarn: 1.22.19 - ~\\AppData\\Roaming\\npm\\yarn.CMD\r\n npm: 8.7.0 - C:\\Program Files\\nodejs\\npm.CMD\r\n Browsers:\r\n Edge: Spartan (44.19041.1266.0), Chromium (110.0.1587.57) \r\n Internet Explorer: 11.0.19041.1566\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.13 => 1.0.0-alpha.48\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3074],{"name":3020,"color":3021},2024,"Rebuild search index","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2024",0.7473133,{"description":3081,"labels":3082,"number":3086,"owner":3023,"repository":3024,"state":3025,"title":3087,"updated_at":3088,"url":3089,"score":3090},"### Is your feature request related to a problem? Please describe.\n\n Algolia Search : transformItems not work.\r\n\r\n\r\n\r\n\r\n\n\n### Describe the solution you'd like\n\nI want http://hostname/prefix/guide/ -> http://hostname/guide/\r\n\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[3083],{"name":3084,"color":3085},"theme","0754FB",614," Algolia Search : transformItems not work","2023-01-21T14:16:55Z","https://github.com/vuejs/vitepress/issues/614",0.7527522,{"description":3092,"labels":3093,"number":3095,"owner":3023,"repository":3024,"state":3025,"title":3096,"updated_at":3097,"url":3098,"score":3099},"### Describe the bug\r\n\r\nIf search has been configured, a search button is shown the navigation bar. This opens a dialog which displays Algolia’s search interface.\r\n\r\nHowever, if JavaScript isn’t available/hasn’t loaded, this search button is still shown, labelled as ‘Search’, yet it doesn’t perform any function. This is confusing, perhaps even more so for screen reader users.\r\n\r\n### Reproduction\r\n\r\nLoad a VitePress-powered site with search configured and JavaScript disabled. A search button is shown, but clicking it doesn’t perform any action.\r\n\r\n### Expected behavior\r\n\r\nIdeally, it would be possible to have this element fallback to an input element and submit button that, when submitted, performs a search on a search engine like DuckDuckGo, with the query scoped to the VitePress’ site URL, for example: \u003Chttps://duckduckgo.com/?q=site%3Ahttps://vitepress.vuejs.org+my+query>\r\n\r\nHowever, the simpler option might be to only show the search button if JavaScript is available or loaded.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 13.1\r\n CPU: (10) arm64 Apple M1 Pro\r\n Memory: 3.05 GB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 18.11.0 - ~/.nvm/versions/node/v18.11.0/bin/node\r\n npm: 8.19.3 - ~/.nvm/versions/node/v18.11.0/bin/npm\r\n Browsers:\r\n Chrome: 109.0.5414.87\r\n Firefox: 108.0.2\r\n Safari: 16.2\r\n npmPackages:\r\n vitepress: ^1.0.0-alpha.27 => 1.0.0-alpha.36\r\n```\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.vuejs.org).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[3094],{"name":3020,"color":3021},1794,"Search button shown when non-functional (i.e. without JavaScript)","2023-01-21T14:16:41Z","https://github.com/vuejs/vitepress/issues/1794",0.75669265,{"description":3101,"labels":3102,"number":3103,"owner":3023,"repository":3024,"state":3025,"title":3104,"updated_at":3105,"url":3106,"score":3107},"Algolia Button Translation setting doesn't work at first load of homepage. \r\n\r\n**Reproduction**:\r\n\r\n(i) Enter [this test site](https://vite-press-test.vercel.app/), look at Algolia search button - It's in English (It should be Chinease under Translation setting).\r\n\r\n(ii) Click the Algolia search button, the button text would change to Chinese.\r\n\r\n_Originally posted by @hyp530 in https://github.com/vuejs/vitepress/issues/788#issuecomment-1157305253_\r\n\r\n---\r\n\r\n```ts\r\n// .vitepress/config.ts\r\n\r\nexport default {\r\n // ...\r\n themeConfig: {\r\n algolia: {\r\n // ...\r\n translations: {\r\n button: {\r\n buttonText: '搜索文档',\r\n buttonAriaLabel: '搜索文档',\r\n },\r\n },\r\n },\r\n },\r\n}\r\n```",[],796,"Algolia translations are not respected on initial load","2023-01-21T14:34:08Z","https://github.com/vuejs/vitepress/issues/796",0.7574593,{"description":3109,"labels":3110,"number":3111,"owner":3023,"repository":3024,"state":3025,"title":3112,"updated_at":3113,"url":3114,"score":3115},"我参考当前 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.7591275,["Reactive",3117],{},["Set"],["ShallowReactive",3120],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkjaNLN29v6DgTXFJ0VStqrfE7idpkVXfiyvlbGW9nTY":-1},"/vuejs/vitepress/1444"]