Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cdrini opened this issue Nov 30, 2022 · 0 comments
Open

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

cdrini opened this issue Nov 30, 2022 · 0 comments

Comments

@cdrini
Copy link

cdrini commented Nov 30, 2022

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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant