[ 
https://issues.apache.org/jira/browse/JCR-4042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mueller updated JCR-4042:
--------------------------------
    Description: 
Currently GQL does not have a escape character. Adding the escape character 
will help in special character cases for example where a search term contains 
both colon ({{:}}) and quote ({{"}}) character.
for example search string is {{foo:bar}}, if term is put in quote {{"foo:bar"}} 
and this whole term is considered as a single search value. 
But in case user need to search {{foo"abc:bar}} then putting this term in 
quotes won't work. But if GQL will have a escape character, then user can 
search this term using escape character. 

  was:
Currently GQL does not have a escape character. Adding the escape character 
will help in special character cases for example where a search term contains 
both colon(:) and quote(") character.
for example search string is foo:bar, if term is put in quote "foo:bar" and 
this whole term is considered as a single search value. 
But in case user need to search foo"abc:bar then putting this term in quotes 
won't work. But if GQL will have a escape character, then user can search this 
term using escape character. 


> Adding Escape Character in GQL
> ------------------------------
>
>                 Key: JCR-4042
>                 URL: https://issues.apache.org/jira/browse/JCR-4042
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: jackrabbit-jcr-commons
>            Reporter: Ankit Agarwal
>            Assignee: Vikas Saurabh
>         Attachments: JCR-4042.take1.patch
>
>
> Currently GQL does not have a escape character. Adding the escape character 
> will help in special character cases for example where a search term contains 
> both colon ({{:}}) and quote ({{"}}) character.
> for example search string is {{foo:bar}}, if term is put in quote 
> {{"foo:bar"}} and this whole term is considered as a single search value. 
> But in case user need to search {{foo"abc:bar}} then putting this term in 
> quotes won't work. But if GQL will have a escape character, then user can 
> search this term using escape character. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to