quran.com-api icon indicating copy to clipboard operation
quran.com-api copied to clipboard

Search returns all language despite language param is spesific (eg: en)

Open imadmk opened this issue 7 years ago • 0 comments

Assalamualaikum I saw this issue https://github.com/quran/quran.com-frontend/issues/826 and did check the networks and found these endpoints

- https://quran.com/api/api/v3/search?q=in%20the%20name&language=en
- https://quran.com/api/api/v3/suggest?q=in%20the%20name&language=en

will return result regardless the language. It also return any ayah that have even a word in the input (eg: in, at) altough it contain many words (eg: in the name). I think it will be more helpful if it returns:

  • in the name -> ayah that has 'in' & 'the' & 'name' in its english translation
  • "in the name" -> ayah that has "in the name" in its english translation

imadmk avatar Aug 08 '17 10:08 imadmk