mirror of https://github.com/apache/lucene.git
LUCENE-5068: QueryParserUtil.escape() does not escape forward slash.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1498770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1c81ad7022
commit
429bbe6950
|
@ -188,6 +188,9 @@ Bug Fixes
|
||||||
setter in ConcurrentMergePolicy: setMaxMergesAndThreads. Previously these
|
setter in ConcurrentMergePolicy: setMaxMergesAndThreads. Previously these
|
||||||
setters would not work unless you invoked them very carefully.
|
setters would not work unless you invoked them very carefully.
|
||||||
(Robert Muir, Shai Erera)
|
(Robert Muir, Shai Erera)
|
||||||
|
|
||||||
|
* LUCENE-5068: QueryParserUtil.escape() does not escape forward slash.
|
||||||
|
(Matias Holte via Steve Rowe)
|
||||||
|
|
||||||
Optimizations
|
Optimizations
|
||||||
|
|
||||||
|
|
|
@ -195,7 +195,7 @@ final public class QueryParserUtil {
|
||||||
if (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 == '&' || c == '/') {
|
||||||
sb.append('\\');
|
sb.append('\\');
|
||||||
}
|
}
|
||||||
sb.append(c);
|
sb.append(c);
|
||||||
|
|
Loading…
Reference in New Issue