Open Bongsakorn opened 6 years ago
Not sure of the inner implementation but the third document text is being detected as "en" even though the language detection favors "th"
GET _langdetect { "text": "นุ้งหมี วิ่งเร็วอะถ่ายไม่ทัน 5555 #narubadin #nw13 #toyotaleaguecup #brutd #mtutd 11.10.60 @ i-mobile Stadium" }
{
"languages": [
{
"language": "th",
"probability": 0.4285714155915268
},
{
"language": "ro",
"probability": 0.428569318044014
},
{
"language": "en",
"probability": 0.14285807944062645
}
]
}
I try to get lang detect via Rest API that found my expected language. But when I search from mapped index which not found the document.
First mapping index
then put data
Then search
Got just 2 documents
Is this bug or I do something wrong? How field
text.language
store the detected languages? Could I display this field?