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

Error -1 when search for any word followed by و and سورة:(suraArabicName) #530

Open
iTarek opened this issue Jun 29, 2021 · 4 comments
Labels

Comments

@iTarek
Copy link

iTarek commented Jun 29, 2021

Example search query
أصحاب و سورة:الكهف
Screen Shot 2021-06-29 at 11 49 38 PM
Link

This error not happen if I put the sura name first like
سورة:الكهف و أصحاب

Or put ()
(أصحاب و (سورة:الكهف

@ghost
Copy link

ghost commented Jun 30, 2021

can you use:

أصحاب + سورة:الكهف

@iTarek
Copy link
Author

iTarek commented Jun 30, 2021

can you use:

أصحاب + سورة:الكهف

Yes + works fine but not و

@iTarek
Copy link
Author

iTarek commented Jul 8, 2021

Just a question on the logical relations

AND, +, و
OR, |, أو
ANDNOT, -

But I can not find Arabic keyword for ANDNOT, is there one?

@sneetsher
Copy link
Member

sneetsher commented Jul 8, 2021

@iTarek وليس is the equivalent for ANDNOT and it has same problem you reported mentioned in this thread.

I tried this and it is working: أصحاب وليس (سورة:الكهف)

By the way, the code in github is searchable. Searching for ANDNOT in Alfanous repository pointed to where all token are declared. See src/alfanous/query_processing.py

@sneetsher sneetsher added the bug label May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants