diff --git a/packages/@vuepress/plugin-search/SearchBox.vue b/packages/@vuepress/plugin-search/SearchBox.vue index 3a48566f22..4ac9b3f329 100644 --- a/packages/@vuepress/plugin-search/SearchBox.vue +++ b/packages/@vuepress/plugin-search/SearchBox.vue @@ -67,7 +67,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