Skip to content

Commit

Permalink
[SSHOC-171] Improvement in actor search.
Browse files Browse the repository at this point in the history
  • Loading branch information
tparkola committed Jul 3, 2024
1 parent 3d7511d commit 36b231f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public List<QueryPart> parsePhrase(String phrase) {
expression.append(token);
} else {
if (isAcceptableExpression(expression.toString())) {
result.add(new QueryPart(ClientUtils.escapeQueryChars(expression.toString()), false));
result.add(new QueryPart(expression.toString(), false));
}
expression = new StringBuilder();
}
Expand All @@ -46,7 +46,9 @@ public List<QueryPart> parsePhrase(String phrase) {
}
}
} else {
expression.append(ClientUtils.escapeQueryChars(token));
if (isAcceptableExpression(token)) {
expression.append(ClientUtils.escapeQueryChars(token));
}
}
}
if (isAcceptableExpression(expression.toString())) {
Expand Down

0 comments on commit 36b231f

Please sign in to comment.