Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
issue #331
  • Loading branch information
rsoika committed Dec 7, 2017
1 parent 6b95bb8 commit 8b3c873
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,8 @@ public static String normalizeSearchTerm(String searchTerm) throws QueryExceptio

ClassicAnalyzer analyzer = new ClassicAnalyzer();
QueryParser parser = new QueryParser("content", analyzer);
// issue #331
parser.setAllowLeadingWildcard(true);
try {
Query result = parser.parse(escapeSearchTerm(searchTerm, false));
searchTerm = result.toString("content");
Expand Down

0 comments on commit 8b3c873

Please sign in to comment.