# Arabic hunspell doesn't work

**URL:** <https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749>\
**Category:** Elasticsearch\
**Created:** [December 22, 2016, 8:08am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749 "2016-12-22T08:08:47Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [December 22, 2016, 8:08am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/1 "2016-12-22T08:08:47Z")

</div>

I tried to load the arabic hunspell from the [elastic hunspell project](https://github.com/elastic/hunspell/tree/master/dicts) .  
I followed the [official elastic doc](https://www.elastic.co/guide/en/elasticsearch/guide/current/hunspell.html)  
and I succeeded with the others dictionaries, except Arabic.  
I got this exception:

```
{
  "error": {
    "root_cause": [
      {
        "type": "index_creation_exception",
        "reason": "failed to create index"
      }
    ],
    "type": "unchecked_execution_exception",
    "reason": "ElasticsearchException[Could not find hunspell dictionary [ar_ooe]]",
    "caused_by": {
      "type": "exception",
      "reason": "Could not find hunspell dictionary [ar_ooe]"
    }
  },
  "status": 500
}

```

I tried with all the arabic versions: `ar-moz, ar-ooe, ar-ooe2`  
I tried it in elastic 2.4.1 and elastic 5.0.2  
Thanks,

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 22, 2016, 10:47am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/2 "2016-12-22T10:47:09Z")

</div>

What do you have in your elasticsearch config dir? Can you share the result of a ls -l `config/hunspell`?

Did you read [https://www.elastic.co/guide/en/elasticsearch/reference/5.1/analysis-hunspell-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.1/analysis-hunspell-tokenfilter.html)?

What exactly steps did you follow?

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [December 22, 2016, 11:58am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/3 "2016-12-22T11:58:32Z")

</div>

I installed elastic with rpm, so I have the hunspell dir in:  
`/etc/elasticsearch/`  
The folder have the right privileges. The other hunspell dictionaries work fine and they have the same privileges.

I followed this guide and I also checked it and it's working for the other dictionaries(en\_US, cy\_GB etc.)  
There is some logs that i can see except this error?..  
Thanks

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 22, 2016, 12:10pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/4 "2016-12-22T12:10:03Z")

</div>

Can you share the result of a `ls -l config/hunspell`?

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [December 22, 2016, 12:55pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/5 "2016-12-22T12:55:49Z")

</div>

ls -l output:  
`drwxr-xr-x. 2 root root 4096 Nov 16 15:54 ar-moz drwxr-xr-x. 2 root root 4096 Nov 16 15:54 ar-ooe drwxr-xr-x. 2 root root 4096 Nov 16 15:54 ar-ooe-2 drwxr-xr-x. 2 root root 4096 Nov 16 15:54 en_US`

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 22, 2016, 1:47pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/6 "2016-12-22T13:47:27Z")

</div>

Thanks.

Can you ls now the content of all subdirs?

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [December 25, 2016, 8:26am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/7 "2016-12-25T08:26:07Z")

</div>

ls -l output for ar:  
`drwxrwxrwx. 1 root root 406229 Nov 16 15:54 ar.aff drwxrwxrwx. 1 root root 2218665 Nov 16 15:54 ar.dic drwxrwxrwx. 1 root root 420 Nov 16 15:54 README-en drwxrwxrwx. 1 root root 50 Nov 16 15:54 settings.yml`

I don't have network connection in my office so it takes me a lot of time to write it..  
I see this output for all the hunspell dic folders

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [January 3, 2017, 8:32am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/8 "2017-01-03T08:32:56Z")

</div>

Could someone help me with that?..  
Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 3, 2017, 8:51am UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/9 "2017-01-03T08:51:57Z")

</div>

In the trace you pasted I can see `ar_ooe` but you installed `ar-ooe`. Can it be your issue?

---

<div class="post-metadata">

**Author:** ![Netanel\_Malka](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/netanel_malka/32/47520_2.png) [@Netanel\_Malka](https://discuss.elastic.co/u/Netanel_Malka)\
**Post date:** [January 15, 2017, 1:20pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/10 "2017-01-15T13:20:59Z")

</div>

Unfortunately not. it's a typo when i copied it manually.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 15, 2017, 4:34pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/11 "2017-01-15T16:34:32Z")

</div>

Just to make sure. Are you running elasticsearch as `root` user?  
I don't understand why your files belongs to `root` user here.

May be try to change that?

I have no more idea (I never used that TBH). May be @Clinton_Gormley1 has more ideas?

---

<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:** [February 12, 2017, 4:35pm UTC](https://discuss.elastic.co/t/arabic-hunspell-doesnt-work/69749/12 "2017-02-12T16:35:13Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
