Arabic Language phonetic search is not working


(chalapathi) #1

Hi,

I am new to ElasticSearch, I have create a new index "his" and installed Phonetic Analysis "bin/plugin install elasticsearch/elasticsearch-analysis-phonetic/2.7.0" post this I have updated my settings as below

{
"his": {
"settings": {
"index": {
"creation_date": "1453719836226",
"analysis": {
"filter": {
"arabic_stop": {
"type": "stop",
"stopwords": "_none"
},
"dbl_metaphone": {
"type": "phonetic",
"encoder": "double_metaphone"
},
"german_stop": {
"type": "stop",
"stopwords": "none"
}
},
"analyzer": {
"german": {
"filter": [
"lowercase",
"german_stop"
],
"tokenizer": "standard"
},
"arabic": {
"filter": [
"lowercase",
"arabic_stop",
"arabic_normalization"
],
"tokenizer": "standard"
},
"dbl_metaphone": {
"filter": "dbl_metaphone",
"tokenizer": "standard"
}
}
},
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "-mYm5v6pTvm4guMsxrzq1A",
"version": {
"created": "2010199"
} } } }
}
Am i missing anything here, coz the German and English Phonetic search is working fine, however the Arabic Phonetic search is not working, I have used arabic similar shound words from "http://www.byki.com/lists/arabic/arabic-pronunciation-training-similar-sounding-letters-words.html"

here are my type and its mappings- type is "patient" mapping details are as below.

{
"his": {
"mappings": {
"patient": {
"properties": {
"address": {
"type": "string"
},
"age": {
"type": "double"
},
"city": {
"type": "string"
},
"dob": {
"type": "date",
"format": "strict_date_optional_time||epoch_millis"
},
"email": {
"type": "string"
},
"firstname": {
"type": "string"
},
"lastname": {
"type": "string"
},
"name": {
"type": "string",
"fields": {
"phonetic": {
"type": "string",
"analyzer": "dbl_metaphone"
}
}
},
"phone": {
"type": "string"
},
"searchfield": {
"type": "string"
},
"website": {
"type": "string"
} } } } }
}

Please help to fix arabic phonetic search , is double metaphone doesn't support Arabic language Phonetic Search?

Thanks,
Chala.


(system) #2