# APIs for Create Index Template & Dynamic Template

**URL:** <https://discuss.elastic.co/t/apis-for-create-index-template-dynamic-template/67360>\
**Category:** Elasticsearch\
**Created:** [November 28, 2016, 2:34pm UTC](https://discuss.elastic.co/t/apis-for-create-index-template-dynamic-template/67360 "2016-11-28T14:34:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreeram](https://avatars.discourse-cdn.com/v4/letter/s/b77776/32.png) [@sreeram](https://discuss.elastic.co/u/sreeram)\
**Post date:** [November 28, 2016, 2:34pm UTC](https://discuss.elastic.co/t/apis-for-create-index-template-dynamic-template/67360/1 "2016-11-28T14:34:32Z")

</div>

Hi All,

I'm using ElasticSearch 2.3.4 and NEST sdk for my .Net Application. I'm trying to define below Index Template and Dynamic Template using Nest Client but not able to identify appropriate APIs for the same,

{  
"template": "_",  
"settings":{  
"index":{  
"analysis":{  
"analyzer":{  
"analyzer\_keyword":{  
"tokenizer":"keyword",  
"filter":"lowercase"  
}  
}  
}  
},  
"number\_of\_shards" : 5,  
"number\_of\_replicas" : 0  
},  
"mappings": {  
"default": {  
"numeric\_detection": true,  
"dynamic\_templates": [  
{  
"string\_analyzer": {  
"match\_mapping\_type": "string",  
"match": "_",  
"mapping": {  
"type": "string",  
"analyzer":"analyzer\_keyword"  
}  
}  
}  
]  
}  
}  
}

Any help is appreciated.

Thanks,  
Sreeram

---

<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:** [December 26, 2016, 2:34pm UTC](https://discuss.elastic.co/t/apis-for-create-index-template-dynamic-template/67360/2 "2016-12-26T14:34:49Z")

</div>

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