SOLR-1034 -- ClientUtils.escapeQuery should escape ;

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@747260 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Ryan McKinley 2009-02-24 02:11:13 +00:00
parent 85b2baeb47
commit 72a9df1b55
1 changed files with 2 additions and 2 deletions

View File

@ -182,7 +182,7 @@ public class ClientUtils
// These characters are part of the query syntax and must be escaped // These characters are part of the query syntax and must be escaped
if (c == '\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':' if (c == '\\' || c == '+' || c == '-' || c == '!' || c == '(' || c == ')' || c == ':'
|| c == '^' || c == '[' || c == ']' || c == '\"' || c == '{' || c == '}' || c == '~' || c == '^' || c == '[' || c == ']' || c == '\"' || c == '{' || c == '}' || c == '~'
|| c == '*' || c == '?' || c == '|' || c == '&' || c == '*' || c == '?' || c == '|' || c == '&' || c == ';'
|| Character.isWhitespace(c)) { || Character.isWhitespace(c)) {
sb.append('\\'); sb.append('\\');
} }