# Store dynamic JSON and make it searchable

**URL:** <https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044>\
**Category:** Elasticsearch\
**Created:** [November 2, 2020, 2:53pm UTC](https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044 "2020-11-02T14:53:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gpt/32/49681_2.png) [@GPT](https://discuss.elastic.co/u/GPT)\
**Post date:** [November 2, 2020, 2:53pm UTC](https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044/1 "2020-11-02T14:53:06Z")

</div>

Hi All

I have a JSON structure but the fields could be changing. I went through this article to convert JSON into a string and make it searchable. Is there a way to set the mapping as JSON and still searchable without causing [mapping explosion](https://www.elastic.co/blog/found-crash-elasticsearch#mapping-explosion)

[https://discuss.elastic.co/t/unmapped-searchable-json-field/6402/8](https://discuss.elastic.co/t/unmapped-searchable-json-field/6402/8)

For example, incoming data for the first time could be

```auto
    {
    "log":{
             "team":"demo",
             "manager":"test"
    }

```

Next time the data could come as

```auto
  {
    "log":{
             "team":"demo",
             "manager":"test",
             "data":"check"
    }
}

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 2, 2020, 11:17pm UTC](https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044/2 "2020-11-02T23:17:32Z")

</div>

No, that's the tradeoff you need to make with Elasticsearch at the moment.

---

<div class="post-metadata">

**Author:** ![GPT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gpt/32/49681_2.png) [@GPT](https://discuss.elastic.co/u/GPT)\
**Post date:** [November 17, 2020, 5:41am UTC](https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044/3 "2020-11-17T05:41:22Z")

</div>

Thanks for your quick reply

---

<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 15, 2020, 5:41am UTC](https://discuss.elastic.co/t/store-dynamic-json-and-make-it-searchable/254044/4 "2020-12-15T05:41:24Z")

</div>

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