# "illegal\_argument\_exception"

**URL:** <https://discuss.elastic.co/t/illegal-argument-exception/171123>\
**Category:** Elasticsearch\
**Created:** [March 6, 2019, 1:48pm UTC](https://discuss.elastic.co/t/illegal-argument-exception/171123 "2019-03-06T13:48:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 6, 2019, 2:05pm UTC](https://discuss.elastic.co/t/illegal-argument-exception/171123/2 "2019-03-06T14:05:50Z")

</div>

Could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Most likely you already inserted data with a `text` type but want now a more complex object.

---

_[View the full topic](https://discuss.elastic.co/t/illegal-argument-exception/171123)._
