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

at sign check fail #21

Open
kommadot opened this issue Apr 4, 2024 · 1 comment
Open

at sign check fail #21

kommadot opened this issue Apr 4, 2024 · 1 comment

Comments

@kommadot
Copy link

kommadot commented Apr 4, 2024

hi traut
thanks for your development

I have one issue
the unquoted at sign(@) has problem, Lucene will handle it normally, but the prettier will fail to match.
Can you tell me how to detour?

help me plz TT

example) email_field:*@gmail.com

email_field:*@gmail.com Line 1, col 14: expected end of input

This issue arises from special characters without double quotes.
not only at sign

@traut
Copy link
Owner

traut commented Apr 5, 2024

@kommadot unfortunately, this lib is barely buildable, with all dependencies being outdated, and I can't invest time to figure out all the failures.

I suspect, the only change needed to allow @ in the wildcard queries (btw, keep in mind that wildcard-leading queries might not even work!), is to add @ to this line:

unquotedString = ~reservedWord (escapedESStringCharacter | wildcardCharacter | alnum | "_" | "." | "-" | "’")+

like this:

unquotedString = ~reservedWord (escapedESStringCharacter | wildcardCharacter | alnum | "@" | "_" | "." | "-" | "’")+

I suspect that might be it, though I can't test because I can't build the library 😄
If you get it running and figure out the change, please make a pull request!

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

2 participants