[ 
https://issues.apache.org/jira/browse/SOLR-794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12637392#action_12637392
 ] 

Koji Sekiguchi commented on SOLR-794:
-------------------------------------

{quote}
since we are not escaping whitespace, now stuff passed to escaper has to escape 
it explicitly.
that is, before, I could pass in the name "David Bowie" and know that that 
would be the Term. With these changes, I would have to pass in "\"David Bowie\""
perhaps we add ifWhitespace() then \char
{quote}

Committed revision 702355. Thanks Ryan!

> ClientUtils.escapeQueryChars escapes chars a bit aggressive
> -----------------------------------------------------------
>
>                 Key: SOLR-794
>                 URL: https://issues.apache.org/jira/browse/SOLR-794
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>    Affects Versions: 1.3
>            Reporter: Koji Sekiguchi
>            Assignee: Koji Sekiguchi
>            Priority: Trivial
>             Fix For: 1.3.1, 1.4
>
>         Attachments: SOLR-794.patch, SOLR-794.patch
>
>
> This was talked before at:
> http://www.nabble.com/ClientUtils-escape-query-td18833559.html
> I didn't notice it at that time though.
> This method outputs weird string when Japanese letters are given for example. 
> "J1J2J3J4J5" => "\J1\J2\J3\J4\J5" We don't want to see it.
> It should use QueryParser.escape() code as it says in javadoc.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to