[ 
https://issues.apache.org/jira/browse/JCR-1248?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547053
 ] 

Ard Schrijvers commented on JCR-1248:
-------------------------------------

Repeated from user-list: 

It seems that in LuceneQueryBuilder at

Object visit(TextsearchQueryNode node, Object data) {

it breaks at

Query context = parser.parse(query.toString()); 

where the parser is o.a.j.core.query.lucene.fulltext.QueryParser. It seems to 
break on string ending with a "!". Unfortunately, I do not have insight in how 
the QueryParser works. Perhaps somebody else knows where to look in the 
QueryParser .

> ParseException if search string ends with '!'
> ---------------------------------------------
>
>                 Key: JCR-1248
>                 URL: https://issues.apache.org/jira/browse/JCR-1248
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: query
>    Affects Versions: 1.3.3
>            Reporter: Claus Köll
>
> If you try to perform a search like this
> //element(*, nt:base)[jcr:contains(., 'test!')]
> you get this exception
> javax.jcr.RepositoryException: Exception building query: 
> org.apache.jackrabbit.core.query.lucene.fulltext.ParseException: Encountered 
> "<EOF>" at line 1, column 6.

-- 
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