Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
Language specifiers (used in the $text query operator, the to-be-deprecated "text" command, the text index "default_language" option, and in document language annotations) will be able to use the following aliases (in addition to their respective English-language equivalents): da, de, en, es, fi, fr, hu, it, nl, no, pt, ro, ru, sv, tr. These aliases will be treated as case-insensitive.
Original description:
Instead of strings like "english" or "spanish" or "french" text search languages notation should be standard two letters (ISO 639-1) like everywhere else (web pages, domain names, keyboards, manuals...).
That's the way it is coded in any decent application. It's THE standard for languages names. The full list here: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codesAt the very least MongoDB should accept BOTH notations. It's such a quick fix.
Attachments
Issue Links
- has to be done before
-
SERVER-10906 Support for legacy text index format textIndexVersion:1
-
- Closed
-
- is depended on by
-
DOCS-1931 Document: Text search languages should accept standard two letters notation "en", "es"... (ISO 639-1)
-
- Closed
-
- is related to
-
DOCS-3880 Norwegian language code is "nb" rather than "no"
-
- Closed
-