# How to specify language Analyzer on CreateIndex using C#

**URL:** <https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714>\
**Category:** Elasticsearch\
**Created:** [September 24, 2018, 5:29pm UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714 "2018-09-24T17:29:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gdelgiovine](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gdelgiovine](https://discuss.elastic.co/u/gdelgiovine)\
**Post date:** [September 24, 2018, 5:29pm UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714/1 "2018-09-24T17:29:40Z")

</div>

Using the C# Nest client (6.2.0) i need to set the Analyzer property to use one of the native Analyzers (italian, english, french ....).

This is my code for CreateIndex

var response = this.mysource.ElasticClient.CreateIndex(IndexName, index =\> index  
.Settings(s =\> s  
.Analysis(a =\> a  
.Analyzers( ???????????????????????? ))  
.NumberOfShards (1)  
.NumberOfReplicas (0)  
)  
.Mappings(ms =\> ms.Map\<poco\_map\_entity\>(m =\> m .AutoMap())  
)  
);

I can't find any source of information on what i have to write in for the Analyzers object.

Using attributes on poco\_mapentity allow me to specify the language Analyzer but i want to set up into the index creation task.

Please HELP me...

Thank you in advance...

---

<div class="post-metadata">

**Author:** ![forloop](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/forloop/32/9021_2.png) [@forloop](https://discuss.elastic.co/u/forloop)\
**Post date:** [September 24, 2018, 10:34pm UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714/2 "2018-09-24T22:34:37Z")

</div>

Take a look at the [.NET client documentation on writing analyzers](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/writing-analyzers.html)

---

<div class="post-metadata">

**Author:** ![gdelgiovine](https://avatars.discourse-cdn.com/v4/letter/g/f9ae1b/32.png) [@gdelgiovine](https://discuss.elastic.co/u/gdelgiovine)\
**Post date:** [September 25, 2018, 7:23am UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714/3 "2018-09-25T07:23:27Z")

</div>

Thank you. I turned around for a whole day without find the correct page.....

---

<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:** [October 23, 2018, 7:23am UTC](https://discuss.elastic.co/t/how-to-specify-language-analyzer-on-createindex-using-c/149714/4 "2018-10-23T07:23:40Z")

</div>

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