happypeter / haoduoshipin

好多视频
http://haoduoshipin.com
236 stars 88 forks source link

添加 algolia 搜索 #440

Closed happypeter closed 6 years ago

happypeter commented 6 years ago

https://community.algolia.com/docsearch/ 是最简单的方式,

不行就是需要我自己生成一个 json 文件,上传到

https://www.algolia.com/apps/6IS4ECLZV9/explorer/browse/courses

happypeter commented 6 years ago

Unfortunately, it seems that your website is not a “technical documentation site" and therefore our DocSearch crawler won't be able to index it perfectly.

a free hacker plan

https://www.algolia.com/pricing

algolia 的回复

happypeter commented 6 years ago

我先手动上传了一些 record ,然后按照这个视频跟着做就能出来了 https://community.algolia.com/react-instantsearch/videos/

效果出来后要考虑每次更新网站内容后如何重新 Index 的问题,这个我目前的思路是:

happypeter commented 6 years ago

这个暂时还是考虑用 Lunr 吧。algolia 还是比较麻烦一些。