jurismarches/luqum

Parser fails at single quote character (eg "hi 'bye'")

cdrini opened this issue · 0 comments

For example:

from luqum.parser import parser
parser.parse("hi 'bye'")
# IllegalCharacterError: Illegal character ''bye'' at position 3

Instead of an error, I expect to get:

UnknownOperation(Word('hi'), Word("'bye'"))

' Shouldn't need escaping in lucene queries as far as I can tell ( https://lucene.apache.org/core/2_9_4/queryparsersyntax.html )