# Creating an index with type mappings with NEST 2

**URL:** <https://discuss.elastic.co/t/creating-an-index-with-type-mappings-with-nest-2/43508>\
**Category:** Elasticsearch\
**Created:** [March 4, 2016, 12:57pm UTC](https://discuss.elastic.co/t/creating-an-index-with-type-mappings-with-nest-2/43508 "2016-03-04T12:57:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SeanFarrow](https://avatars.discourse-cdn.com/v4/letter/s/b38774/32.png) [@SeanFarrow](https://discuss.elastic.co/u/SeanFarrow)\
**Post date:** [March 4, 2016, 12:57pm UTC](https://discuss.elastic.co/t/creating-an-index-with-type-mappings-with-nest-2/43508/1 "2016-03-04T12:57:40Z")

</div>

Hi,

What is the easiest way of creating an index with the NEST 2.0 api before adding a document?  
I know the type of the class I wish to index.  
Any help appreciated.Kind regards  
Sean.

---

<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 5, 2017, 11:11pm UTC](https://discuss.elastic.co/t/creating-an-index-with-type-mappings-with-nest-2/43508/2 "2017-07-05T23:11:16Z")

</div>


