Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
8.4.1
-
None
Description
If, in an expression, a value with a whitespace char is directly preceded by a special char "[" or "(", whitespace char in the value gets replaced with space.
This does not happen, if there is a space between "[" and a double quote in the expression.
For example, if we have a document with cat_s field containing a value "57\n157", following query works:
"q":"cat_s:[ \"57\n157\" TO \"57\n157\"]", "defType":"edismax"
but
"q":"cat_s:[\"57\n157\" TO \"57\n157\"]", "defType":"edismax
does not, as lower boundary value gets replaces with "57 157" in ExtendedDismaxQParser after following calls
List<Clause> clauses = splitIntoClauses(userQuery, false); String mainUserQuery = rebuildUserQuery(clauses, config.lowercaseOperators);
As a workaround, we need to add a space before a double quote in expressions.
Attachments
Issue Links
- links to