\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.71607524,{"description":2910,"labels":2911,"number":2912,"owner":2869,"repository":2870,"state":2871,"title":2913,"updated_at":2914,"url":2915,"score":2916},"### 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":2918,"labels":2919,"number":2921,"owner":2869,"repository":2870,"state":2871,"title":2922,"updated_at":2923,"url":2924,"score":2925},"### 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.",[2920],{"name":2866,"color":2867},2024,"Rebuild search index","2023-03-10T00:04:38Z","https://github.com/vuejs/vitepress/issues/2024",0.7473133,{"description":2927,"labels":2928,"number":2932,"owner":2869,"repository":2870,"state":2871,"title":2933,"updated_at":2934,"url":2935,"score":2936},"### 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.",[2929],{"name":2930,"color":2931},"theme","0754FB",614," Algolia Search : transformItems not work","2023-01-21T14:16:55Z","https://github.com/vuejs/vitepress/issues/614",0.7527522,{"description":2938,"labels":2939,"number":2941,"owner":2869,"repository":2870,"state":2871,"title":2942,"updated_at":2943,"url":2944,"score":2945},"### 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.",[2940],{"name":2866,"color":2867},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":2947,"labels":2948,"number":2949,"owner":2869,"repository":2870,"state":2871,"title":2950,"updated_at":2951,"url":2952,"score":2953},"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":2955,"labels":2956,"number":2960,"owner":2869,"repository":2870,"state":2871,"title":2961,"updated_at":2962,"url":2963,"score":2964},"### Describe the bug\n\nWhen using Algolia search I'm getting this error in console and the search results do not appear. The API key is correct because the search results do appear when looking at XHR request.\r\n\r\n````\r\nUncaught (in promise) TypeError: Cannot read property 'lvl0' of undefined\r\n at DocSearchModal.js:187\r\n at groupBy.js:3\r\n at Array.reduce (\u003Canonymous>)\r\n at Vn (groupBy.js:2)\r\n at DocSearchModal.js:186\r\n````\n\n### Reproduction\n\nI just installed a new vitepress app, added my Algolia API key and App Id and this error occurred\r\n\r\nMy **config.js**\r\n````\r\nmodule.exports = {\r\n themeConfig: {\r\n sidebar: 'auto',\r\n algolia: {\r\n apiKey: '45d2386d18e39ac011227993d8353c00',\r\n appId: 'H5ZNGVTVMT',\r\n indexName: 'program_docs'\r\n }\r\n }\r\n}\r\n````\n\n### Expected behavior\n\nI expected to see the results appear in Algolia search box\n\n### System Info\n\n```shell\nnpx: installed 1 in 0.707s\r\n\r\n System:\r\n OS: Linux 5.8 Ubuntu 20.04.2 LTS (Focal Fossa)\r\n CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz\r\n Memory: 12.12 GB / 31.08 GB\r\n Container: Yes\r\n Shell: 5.8 - /usr/bin/zsh\r\n Binaries:\r\n Node: 14.17.2 - /usr/bin/node\r\n npm: 6.14.13 - /usr/bin/npm\r\n Browsers:\r\n Chrome: 91.0.4472.164\r\n Firefox: 90.0\r\n npmPackages:\r\n vitepress: ^0.15.6 => 0.15.6\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/coc)\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.",[2957],{"name":2958,"color":2959},"need more info","bdbefc",336,"Algolia search: Cannot read property 'lvl0' of undefined","2023-01-21T14:34:07Z","https://github.com/vuejs/vitepress/issues/336",0.7613178,["Reactive",2966],{},["Set"],["ShallowReactive",2969],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$fkjaNLN29v6DgTXFJ0VStqrfE7idpkVXfiyvlbGW9nTY":-1},"/vuejs/vitepress/1444"]