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
|
@ -189,6 +189,9 @@ Bug Fixes
|
|||
setters would not work unless you invoked them very carefully.
|
||||
(Robert Muir, Shai Erera)
|
||||
|
||||
* LUCENE-5068: QueryParserUtil.escape() does not escape forward slash.
|
||||
(Matias Holte via Steve Rowe)
|
||||
|
||||
Optimizations
|
||||
|
||||
* LUCENE-4936: Improve numeric doc values compression in case all values share
|
||||
|
|
|
@ -195,7 +195,7 @@ final public class QueryParserUtil {
|
|||
if (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(c);
|
||||
|
|
Loading…
Reference in New Issue