[teiid-issues] [JBoss JIRA] (TEIID-3094) SOLR: minus sign is not escaped

Filip Elias (JIRA) issues at jboss.org
Tue Aug 19 11:17:32 EDT 2014


     [ https://issues.jboss.org/browse/TEIID-3094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filip Elias updated TEIID-3094:
-------------------------------

    Description: 
Minus sign is not escaped in SOLR translator which causes parse exception, because the "-" is a special character.

Example of query:
Query: {code}SELECT BQT1.SmallA.IntNum FROM BQT1.SmallA WHERE BQT1.SmallA.IntNum = -1{code}
Query parameter q is set to: {code}IntNum:-1{code} but it should be: {code}IntNum:\-1{code}

Log is in the attachment.


  was:
Minus sign is not escaped in SOLR translator which causes parse exception, because the "-" is a special character.

Example of query:
Query: SELECT BQT1.SmallA.IntNum FROM BQT1.SmallA WHERE BQT1.SmallA.IntNum = -1
Query parameter q is set to "IntNum:-1" but it should be "IntNum:\\-1"

Log is in the attachment.




> SOLR: minus sign is not escaped
> -------------------------------
>
>                 Key: TEIID-3094
>                 URL: https://issues.jboss.org/browse/TEIID-3094
>             Project: Teiid
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 8.7
>            Reporter: Filip Elias
>            Assignee: Steven Hawkins
>         Attachments: server.log
>
>
> Minus sign is not escaped in SOLR translator which causes parse exception, because the "-" is a special character.
> Example of query:
> Query: {code}SELECT BQT1.SmallA.IntNum FROM BQT1.SmallA WHERE BQT1.SmallA.IntNum = -1{code}
> Query parameter q is set to: {code}IntNum:-1{code} but it should be: {code}IntNum:\-1{code}
> Log is in the attachment.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the teiid-issues mailing list