History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: NXP-1401
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Critical Critical
Assignee: Georges Racinet
Reporter: Georges Racinet
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Nuxeo Enterprise Platform

Advanced search > error with caracters " and '

Created: 02/08/07 14:24   Updated: 10/06/08 02:25  Due: 31/07/07
Component/s: Query / Search
Affects Version/s: None
Fix Version/s: 5.1.0.GA

Time Tracking:
Not Specified

Resolution Date: 02/08/07 18:26
Require Callback: No
Participants: Georges Racinet
Tags:


 Description  « Hide
I get an error when I search "l'exode" in the field "tous les mots suivants".
Just before I tried a search on "exode" and didn't get an error.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Georges Racinet - 02/08/07 14:35
It's an error in the query parser: QueryModel escapes quotes by doubling them whereas the parser expects a backslash.
According to JSR 170 p 310, it seems that QM is right, but fixing is easier in QueryModel (because it's not in core)

Also, the exception isn't properly catched.

Georges Racinet - 02/08/07 15:51
about double quotes: in this case, this is a Lucene special character (see http://lucene.apache.org/java/docs/queryparsersyntax.html)
we want escaping of those to be configurable, because it depends on applicative use-cases.

The default application will escape double quotes, thus leaving ~, ^ to play with.


Georges Racinet - 02/08/07 18:26
There is now a registrable escaper. By default, this is LuceneMinimalEscaper, that takes care of double quotes only.