# Searching Arabic content: getting only exact matches

**URL:** <https://discuss.elastic.co/t/searching-arabic-content-getting-only-exact-matches/58734>\
**Category:** Elasticsearch\
**Created:** [August 23, 2016, 7:37pm UTC](https://discuss.elastic.co/t/searching-arabic-content-getting-only-exact-matches/58734 "2016-08-23T19:37:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yahoo](https://avatars.discourse-cdn.com/v4/letter/y/898d66/32.png) [@yahoo](https://discuss.elastic.co/u/yahoo)\
**Post date:** [August 23, 2016, 7:37pm UTC](https://discuss.elastic.co/t/searching-arabic-content-getting-only-exact-matches/58734/1 "2016-08-23T19:37:44Z")

</div>

I am using Logstash 2.3.3, Elasticsearch 2.3.3, Kibana 4.5.3.  
The content for search is in Arabic (Unicode utf-8).  
Currently the search only finds exact words, not according to stem.

For example, the word in Arabic ‘ باب’ ‘door’ and ‘الباب ‘ ‘the door’ are considered two separate words and searching for ‘door’ ‘ باب’ will not get instances of ‘the door’ ‘الباب ‘ .

Any hint on how to solve this problem?  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![rmuir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rmuir/32/44949_2.png) [@rmuir](https://discuss.elastic.co/u/rmuir)\
**Post date:** [August 23, 2016, 7:51pm UTC](https://discuss.elastic.co/t/searching-arabic-content-getting-only-exact-matches/58734/2 "2016-08-23T19:51:32Z")

</div>

You have to set the analyzer to arabic language for the field: [https://www.elastic.co/guide/en/elasticsearch/guide/current/using-language-analyzers.html](https://www.elastic.co/guide/en/elasticsearch/guide/current/using-language-analyzers.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/searching-arabic-content-getting-only-exact-matches/58734/3 "2017-07-05T22:25:47Z")

</div>


