# Config language = no (Norwegian) problems

**URL:** <https://discuss.elastic.co/t/config-language-no-norwegian-problems/3932>\
**Category:** Elasticsearch\
**Created:** [February 16, 2011, 12:37pm UTC](https://discuss.elastic.co/t/config-language-no-norwegian-problems/3932 "2011-02-16T12:37:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barsk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barsk/32/13734_2.png) [@Barsk](https://discuss.elastic.co/u/Barsk)\
**Post date:** [February 16, 2011, 12:37pm UTC](https://discuss.elastic.co/t/config-language-no-norwegian-problems/3932/1 "2011-02-16T12:37:30Z")

</div>

When using the ICU filter like this:

index :  
analysis :  
analyzer :  
myCollation :  
type : custom  
tokenizer : standard  
filter : [myCollator]  
filter :  
myCollator :  
type : icu\_collation  
language : no

The language is interpreted as "false" when the code  
String language = settings.get("language");  
is run inside IcuCollationTokenFilterFactory. I ran this in debug mode  
to check. The parser for the config settings converts the string "no" to  
"false" when it is expected to be passed as "no" (= Norwegian).

I guess we can call this a bug 😉

/Kristian

--  
Med vÃ¤nlig hÃ¤lsning  
Kristian JÃ¶rg

Devo IT AB  
Tel: 054 - 22 14 58, 0709 - 15 83 42  
E-post: kristian.jorg@devo.se  
Webb: [http://www.devo.se](http://www.devo.se)

---

<div class="post-metadata">

**Author:** ![Barsk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/barsk/32/13734_2.png) [@Barsk](https://discuss.elastic.co/u/Barsk)\
**Post date:** [February 16, 2011, 8:53pm UTC](https://discuss.elastic.co/t/config-language-no-norwegian-problems/3932/2 "2011-02-16T20:53:02Z")

</div>

Created an issue for this as:

> <https://github.com/elastic/elasticsearch/issues/693>
>
> When using the ICU collation filterfor norwegian collation like this
> 
> index :
> … analysis :
> analyzer :
> myCollation :
> type : custom
> tokenizer : standard
> filter : \[myCollator\]
> filter :
> myCollator :
> type : icu\_collation
> language : no
> 
> The language "no" is interpreted as "false" internally. I ran this in debug mode to check. The parser for the config settings converts the string "no" to "false" when it is expected to be passed as "no" (= Norwegian).

Kristian JÃ¶rg skrev 2011-02-16 13:37:

> When using the ICU filter like this:
> 
> index :  
> analysis :  
> analyzer :  
> myCollation :  
> type : custom  
> tokenizer : standard  
> filter : [myCollator]  
> filter :  
> myCollator :  
> type : icu\_collation  
> language : no
> 
> The language is interpreted as "false" when the code  
> String language = settings.get("language");  
> is run inside IcuCollationTokenFilterFactory. I ran this in debug mode  
> to check. The parser for the config settings converts the string "no"  
> to "false" when it is expected to be passed as "no" (= Norwegian).
> 
> I guess we can call this a bug 😉
> 
> /Kristian

---

<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 6, 2017, 4:11am UTC](https://discuss.elastic.co/t/config-language-no-norwegian-problems/3932/3 "2017-07-06T04:11:58Z")

</div>


