# Elasticsearch NEST library. Mapping root type name

**URL:** <https://discuss.elastic.co/t/elasticsearch-nest-library-mapping-root-type-name/91602>\
**Category:** Elasticsearch\
**Created:** [July 3, 2017, 7:54am UTC](https://discuss.elastic.co/t/elasticsearch-nest-library-mapping-root-type-name/91602 "2017-07-03T07:54:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lcokru](https://avatars.discourse-cdn.com/v4/letter/l/bbce88/32.png) [@lcokru](https://discuss.elastic.co/u/lcokru)\
**Post date:** [July 3, 2017, 7:54am UTC](https://discuss.elastic.co/t/elasticsearch-nest-library-mapping-root-type-name/91602/1 "2017-07-03T07:54:19Z")

</div>

I try use NEST library mapping functionality in a next way:

MappingsDescriptor mappingsDescriptor = new MappingsDescriptor();

```
		mappingsDescriptor.Map< **object** >(m => m
			.Properties(p => p
				.Keyword(k => k
					.Name(FilesetHit.Names.FilesetId)
					.IncludeInAll(false))
				.Number(n => n)
                                    ...

```

How can I set name for ROOT mapping type?

---

<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 31, 2017, 7:54am UTC](https://discuss.elastic.co/t/elasticsearch-nest-library-mapping-root-type-name/91602/2 "2017-07-31T07:54:21Z")

</div>

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