-
How to run my own crawler to use the Docsearch plugin? Symptom description / 症状描述I added the Now there are records in Indices: But no results are found in VuePress2: Project link: https://note.yueplus.ink/ Operation process / 操作过程VuePress configuration / VuePress 配置Add yarn add @vuepress/plugin-docsearch@next
{
"devDependencies": {
"vuepress": "^2.0.0-beta.6"
},
"dependencies": {
"@vuepress/plugin-docsearch": "^2.0.0-beta.6",
}
}
plugins: [
['@vuepress/docsearch', {
appId: '0YWM7BGDQI', // Application ID
apiKey: '9dc6fe12516690be51dea370e78001f6', // Search-Only API Key
indexName: 'note.yueplus.ink',
locales: {
'/': {
placeholder: '在此搜索文档'
}
}
}]
] Run the crawl from the Docker image / 从 Docker 镜像运行爬虫
{
"index_name": "note.yueplus.ink",
"start_urls": ["https://note.yueplus.ink/"],
"selectors": {
"lvl0": ".page header h1",
"lvl1": ".page article h1",
"lvl2": ".page section h3",
"lvl3": ".page section h4",
"lvl4": ".page section h5",
"lvl5": ".page section h6",
"text": ".page header p,.page section p,.page section ol,.page ul li"
}
} Maybe my |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
The data can be searched using the playground tool in docsearch-scraper, but the search results are not displayed normally: |
Beta Was this translation helpful? Give feedback.
The data can be searched using the playground tool in docsearch-scraper, but the search results are not displayed normally:
使用 docsearch-scraper 中的测试工具是可以搜索到数据的,但是却没有正常显示搜索结果: