diff --git a/packages/@vuepress/plugin-search/SearchBox.vue b/packages/@vuepress/plugin-search/SearchBox.vue index 6fbbd70b3e..27a8c952f6 100644 --- a/packages/@vuepress/plugin-search/SearchBox.vue +++ b/packages/@vuepress/plugin-search/SearchBox.vue @@ -62,7 +62,7 @@ export default { } const { pages } = this.$site - const max = SEARCH_MAX_SUGGESTIONS + const max = this.$site.themeConfig.searchMaxSuggestions || SEARCH_MAX_SUGGESTIONS const localePath = this.$localePath const matches = item => ( item.title