Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support 中文搜索 #51

Closed
Ir1d opened this issue Aug 3, 2018 · 2 comments
Closed

support 中文搜索 #51

Ir1d opened this issue Aug 3, 2018 · 2 comments

Comments

@Ir1d
Copy link
Member

Ir1d commented Aug 3, 2018

用 jp 的分词可以有不错的效果,但是还是有点坑,感觉还是应该手动搞个结巴分词啥的

  • 听说文章很多的时候用 lunr 得到的 json 会太大 (这个要日后再 check 一下)
    upd: mkdocs v1.0 之后,改起来变得好麻烦,感觉要弃坑了

  • 可以试下部署个 elasticsearch

  • algolia https://github.com/squidfunk/mkdocs-material/issues/414 这个好像在 v1.0 修复了 感觉可以试一下的样子

  • 百度站内:

<script type="text/javascript">(function(){document.write(unescape('%3Cdiv id="bdcs"%3E%3C/div%3E'));var bdcs = document.createElement('script');bdcs.type = 'text/javascript';bdcs.async = true;bdcs.src = 'http://znsv.baidu.com/customer_search/api/js?sid=16621994376039180257' + '&plate_url=' + encodeURIComponent(window.location.href) + '&t=' + Math.ceil(new Date()/3600000);var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(bdcs, s);})();</script>
@Ir1d Ir1d added the Content Request / 内容请求 New feature or request label Aug 3, 2018
@Ir1d Ir1d self-assigned this Aug 3, 2018
@Ir1d
Copy link
Member Author

Ir1d commented Aug 22, 2018

// 原版
image
image


// algolia

image
image

@Ir1d
Copy link
Member Author

Ir1d commented Sep 10, 2018

#402

@Ir1d Ir1d closed this as completed Sep 10, 2018
添加内容 automation moved this from Dev to Done / Depreciated / Redirected Sep 10, 2018
按优先级整理的看板 automation moved this from Low priority to Done Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
添加内容
  
Done / Deprecated / Redirected
Development

No branches or pull requests

1 participant