Skip to content

Commit c5dfd15

Browse files
ahornaceVladimir Kotal
authored andcommitted
Enable leading wildcard for suggestions
1 parent 6a9fcc9 commit c5dfd15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/org/opensolaris/opengrok/web/suggester/query/SuggesterQueryParser.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ class SuggesterQueryParser extends CustomQueryParser {
7676
SuggesterQueryParser(final String field, final String identifier) {
7777
super(field);
7878
this.identifier = identifier;
79+
// always allow leading wildcard suggestions (even if they are disabled in configuration)
80+
setAllowLeadingWildcard(true);
7981
}
8082

8183
public SuggesterQuery getSuggesterQuery() {

0 commit comments

Comments
 (0)