Skip to content

Commit

Permalink
fix(repository-elasticsearch): invalid escape for special chars
Browse files Browse the repository at this point in the history
close #834
  • Loading branch information
tchiotludo committed Dec 22, 2022
1 parent 1a1b32c commit 70190d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected static QueryStringQueryBuilder queryString(@Nullable String query) {


if (words.size() == 1) {
lucene = "(" + query + ")^5 OR " + lucene;
lucene = "(" + QueryParser.escape(query) + ")^5 OR " + lucene;
}

return QueryBuilders.queryStringQuery(lucene);
Expand Down

0 comments on commit 70190d4

Please sign in to comment.