Skip to content
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

langdetect returns ISO-639-2/B ("ger", "eng", "fre"...) instead of ISO-639-1 ("de", "en", "fr"...) #14

Open
marbleman opened this issue Mar 8, 2016 · 2 comments

Comments

@marbleman
Copy link

In opposite to documentation of the single langdetect plugin [https://github.com/jprante/elasticsearch-langdetect] this version returns ISO-639-2/B language code instead of ISO-639-1, due to a different language.json file. This is a little confusing: Does this affect elasticsearch.yml as well? Is it
langdetect.languages = de,en,fr
or
langdetect.languages = ger,eng,fre
in elasticsearch.yml?

I assume, I cannot install the native langdetect plugin on top of the bundle to return to ISO-639-1, right?

@jprante
Copy link
Owner

jprante commented Mar 8, 2016

Sorry, this is not intended. I will return to ISO-639-1. The mapping to ISO-639-2/B was just added as a showcase to get an example how to change language code output. The map is only for output, not for langdetect configuration.

@marbleman
Copy link
Author

Oh, great! Makes things easier! Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants