Alfanous-team / alfanous

Alfanous is an Arabic search engine API provides the simple and advanced search in Quran , more features and many interfaces...
http://www.alfanous.org/
GNU Affero General Public License v3.0
251 stars 89 forks source link

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

Open iTarek opened 3 years ago

iTarek commented 3 years ago

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 commented 3 years ago

can you use:

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

iTarek commented 3 years ago

can you use:

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

Yes + works fine but not و

iTarek commented 3 years ago

Just a question on the logical relations

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

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

sneetsher commented 3 years ago

@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