File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,10 @@ twitter_username: quarkusio
23
23
github_username : quarkusio
24
24
github_fork_url : " https://github.com/quarkusio/quarkus"
25
25
search :
26
- # The minimum number of characters before we rely on remote search
27
- # Below this, we rely on Javascript search
26
+ # The minimum number of characters before we run a full search.
27
+ # Below this:
28
+ # - if another filter is selected (e.g. categories), we run Javascript search
29
+ # - otherwise, we don't run search and just display all guides
28
30
min-chars : 2
29
31
# The URL of the remote search service
30
32
url : " https://search.quarkus.io/"
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ const app = createApp({
77
77
}
78
78
} ,
79
79
hasInput ( ) {
80
- return this . search . input . q || this . search . input . categories
80
+ return this . search . input . q && this . search . input . q . length >= this . minChars || this . search . input . categories
81
81
} ,
82
82
hasInputWithTooFewChars ( ) {
83
83
return this . search . input . q && this . search . input . q . length < this . minChars
You can’t perform that action at this time.
0 commit comments