Vuepress: Full-text search

Created on 16 Apr 2018  路  5Comments  路  Source: vuejs/vuepress

Maybe it would be possible to not use Algolia document search, but a custom search built-in?

Compare:

https://github.com/QingWei-Li/docsify

Otherwise search wouldn鈥檛 work for a company Intranet.

Most helpful comment

While I appreciate that vuepress has both options of "built-in header-search" and "Algolia search for fulltext", I agree with the issue author that having also a built-in fulltext search would be an excellent addition (for example, MKDocs and Gitbook have this feature).

Internal/private documents would enormously benefit from this (and this would make Vuepress an excellent choice for such cases).

All 5 comments

VuePress comes with built-in headers-based search - it automatically builds a simple search index from the title, h2 and h3 headers from all the pages.

https://vuepress.vuejs.org/guide/basic-config.html#config-file

While I appreciate that vuepress has both options of "built-in header-search" and "Algolia search for fulltext", I agree with the issue author that having also a built-in fulltext search would be an excellent addition (for example, MKDocs and Gitbook have this feature).

Internal/private documents would enormously benefit from this (and this would make Vuepress an excellent choice for such cases).

@yyx990803 Would you consider re-opening this?

@ulivz wrote an explanation why it's currently not implemented here: https://github.com/vuejs/vuepress/issues/385#issuecomment-387929249

Since all pages are loaded on demand, so full text search will make it meaningless.

So we won't plan to implement it at default theme, but maybe it can be done by a plugin in the future (Maybe v1.0.0).

https://github.com/vuejs/vuepress/pull/1557 I added tags support and multi-word search, not the whole nine yard but a small improvement!

Was this page helpful?
0 / 5 - 0 ratings