[
https://issues.apache.org/jira/browse/OAK-3377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14736350#comment-14736350
]
Thomas Mueller commented on OAK-3377:
-------------------------------------
You are right. The relevant section in the JCR spec:
http://www.day.com/specs/jcr/1.0/6.6.5.2_jcr_contains_Function.html
{noformat}
searchexp ::= [-]term {whitespace [OR]
whitespace [-]term}
term ::= word | '"' word {whitespace word} '"'
word ::= /* A string containing no whitespace */
whitespace ::= /* A string of only whitespace*/
{noformat}
Fixed in http://svn.apache.org/r1701916 (trunk)
> Two spaces in SQL2 fulltext search -> error
> -------------------------------------------
>
> Key: OAK-3377
> URL: https://issues.apache.org/jira/browse/OAK-3377
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: query
> Affects Versions: 1.0.19
> Reporter: Laurie byrum
> Assignee: Thomas Mueller
> Fix For: 1.3.6
>
>
> Execute the following SQL2 query (eg, in crx/de's query tool)
> SELECT * FROM [nt:unstructured] AS c WHERE (CONTAINS(c.[jcr:title], 'a b')
> AND ISDESCENDANTNODE(c, '/content'))
> (note there are 2 spaces between "a" and "b")
> Result: java.lang.IllegalArgumentException: Invalid expression: 'a b'
> If there is only 1 space between a and b, there is no error.
> Per jsr-283, fulltext expressions should be able to have strings of
> whitespace.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)