# Using Nest.net indexing list\<SomeType\> where SomeType is abstract

**URL:** <https://discuss.elastic.co/t/using-nest-net-indexing-list-sometype-where-sometype-is-abstract/266848>\
**Category:** Elasticsearch\
**Created:** [March 10, 2021, 5:40pm UTC](https://discuss.elastic.co/t/using-nest-net-indexing-list-sometype-where-sometype-is-abstract/266848 "2021-03-10T17:40:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RejectKid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rejectkid/32/85333_2.png) [@RejectKid](https://discuss.elastic.co/u/RejectKid)\
**Post date:** [March 10, 2021, 5:40pm UTC](https://discuss.elastic.co/t/using-nest-net-indexing-list-sometype-where-sometype-is-abstract/266848/1 "2021-03-10T17:40:32Z")

</div>

I have an object

```auto
    public class SomeObject
    {
       List<SomeType>
    }

```

There are several derived types of SomeType and populated in the list. However when i push this data into ES using [Nest.net](https://github.com/elastic/elasticsearch-net) it strips out the derived properties and only contains the SomeType values. is there a way around this?

---

<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:** [April 7, 2021, 5:41pm UTC](https://discuss.elastic.co/t/using-nest-net-indexing-list-sometype-where-sometype-is-abstract/266848/2 "2021-04-07T17:41:30Z")

</div>

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