quran / quran.com-api

Quran.com api
https://api-docs.quran.com/docs/quran.com_versioned/4.0.0/quran-com-api
MIT License
900 stars 188 forks source link

Do not return tafsir and fonts (numbers) in search API #63

Closed mmahalwy closed 8 years ago

maryamklabib commented 8 years ago

To clarify, here's a sample response currently. How would you like the response to look instead?

results: [
{"key":"68_13", "doc_count":1,
"average_score":{
"value":70.965461730957
},
"match":[
{
"score":70.96546,
"text":"AAutullin baAAda thalika <em class=\"hlt3\">zaneem</em>",
"language_code":"en",
"sub_type":"transliteration",
"cardinality_type":"1_ayah",
"name":"Transliteration",
"resource_id":56,
"description":null,
"language":{
"language_code":"en",
"english":"English",
"unicode":"English",
"es_analyzer_default":null,
"priority":1,
"beta":false,
"direction":"ltr"
},
"source_id":1,
"type":"content",
"author_id":0,
"slug":"transliteration",
"is_available":true
}
],
"ayah":{
"ayah_index":5284,
"surah_id":68,
"ayah_num":13,
"page_num":564,
"juz_num":29,
"hizb_num":57,
"rub_num":226,
"text":"عتل بعد ذلك زنيم",
"ayah_key":"68:13",
"sajdah":null,
"words":[
{
"resource_id":1,
"ayah_key":"68:13",
"position":1,
"word_id":72846,
"page_num":564,
"line_num":14,
"code_dec":64491,
"code_hex":"fbeb",
"char_type_id":1,
"class_name":"p564",
"code":"ﯫ",
"translation":"Cruel",
"transliteration":"ʿutullin",
"arabic":"عُتُلٍّ"
},
{..},
{..},
{..}
],
"text_tashkeel":"عُتُلٍّ بَعْدَ ذَٰلِكَ زَنِيمٍ"
},
"score":70.965461730957,
"hits":1
},```
mmahalwy commented 8 years ago

@maryamklabib i think it's when you search using arabic. For example الذين امنو

mmahalwy commented 8 years ago

image

maryamklabib commented 8 years ago

Ah I assumed you were referring to the search endpoint in the API but felt way off. Glad to know I was indeed way off :)

mmahalwy commented 8 years ago

no no, you were in the right place, just didnt search the right thing to find the bug :)

mmahalwy commented 8 years ago

Okay I am going to take this over since people have complained about this