New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch fails to find Hunspell dictionaries #34761
Comments
OK. I just found out that it is, indeed, looking for Hunspell dictionaries under But the question remains: Why doesn't Elasticsearch look for Hunspell dictionaries under
What is meant by |
Pinging @elastic/es-search-aggs |
|
I see. I greped the log file for I digged a bit deeper at why this happens. Right at the beginning of
At
And finally, at
I simply tried commenting this line out and now it actually complains about my So, in case I am not missing anything,
Although documented (I've to admit I overlooked it), the current behavior doesn't seem very intuitive to me. But that might be a personal bias (I expected I believe the file I have in |
Agreed. Thanks for your time. |
Hi.
I'm migrating some codebase from 2.3.2 to 6.4.2. When running tests, we used to start Elasticsearch as follows:
I changed this to:
(where
$1
is, in this case,tmp-elasticsearch
)Elasticsearch starts as expected, but it fails to find a Hunspell dictionary located under
tmp-elasticsearch/config
, such as shown here:When attempting to create a mapping that incorporates a Hunspell filter, the following exception is yielded:
The problem is that I don't have any reasonable way of knowing where exactly is Elasticsearch looking for the Hunspell dictionaries and if
ES_PATH_CONF
does have any effect at all. Since I also have Hunspell dictionaries located in/etc/elasticsearch/hunspell
, I tried removingES_PATH_CONF
altoghether, but got the same result. When trying to setES_PATH_CONF
to a nonexistent directory, no other error occurred and Elasticsearch surprisingly started normally as well.I was a little unsure if environment variables are taken into account at all, but it would seem that at least
ES_TMPDIR
is (since I checkedtmp-elasticsearch/tmp
and found some signs of activity there).This is happening with Elasticsearch 6.4.2 on Debian testing (
Linux desktop 4.16.0-1-amd64 #1 SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux
) with OpenJDK 1.8.0_171.Thanks for help.
The text was updated successfully, but these errors were encountered: