# How can i search and store the value in dictionary of any datatype?

**URL:** <https://discuss.elastic.co/t/how-can-i-search-and-store-the-value-in-dictionary-of-any-datatype/171048>\
**Category:** Elasticsearch\
**Created:** [March 6, 2019, 8:12am UTC](https://discuss.elastic.co/t/how-can-i-search-and-store-the-value-in-dictionary-of-any-datatype/171048 "2019-03-06T08:12:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sangeeth\_Kumar](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Sangeeth\_Kumar](https://discuss.elastic.co/u/Sangeeth_Kumar)\
**Post date:** [March 6, 2019, 8:12am UTC](https://discuss.elastic.co/t/how-can-i-search-and-store-the-value-in-dictionary-of-any-datatype/171048/1 "2019-03-06T08:12:58Z")

</div>

Hi,

```
 I have data which has any datatype in a dictionary as mentioned below,

```

Sample JSON:

```
{
  "custom_some_random_string": {
    "Name": "John",
    "Birthday": "2018-1-09T23:10:11Z",
    "Location": {
      "lat": "99.7",
      "lon": "22.9"
    },
    "Age": "34"
  }
}

```

I have to store the above JSON as it is without datatype detection. Also need to do free text search with filters

```
query string : "John"
includefields: custom_*

```

Can anyone help me out for this problem?

---

<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 3, 2019, 8:25am UTC](https://discuss.elastic.co/t/how-can-i-search-and-store-the-value-in-dictionary-of-any-datatype/171048/2 "2019-04-03T08:25:49Z")

</div>

Closed on April 3, 2019, 8:25am UTC

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