# Querystring to search nested objects

**URL:** <https://discuss.elastic.co/t/querystring-to-search-nested-objects/159931>\
**Category:** Elasticsearch\
**Created:** [December 7, 2018, 12:48pm UTC](https://discuss.elastic.co/t/querystring-to-search-nested-objects/159931 "2018-12-07T12:48:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vishnu\_P\_S](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@Vishnu\_P\_S](https://discuss.elastic.co/u/Vishnu_P_S)\
**Post date:** [December 7, 2018, 12:48pm UTC](https://discuss.elastic.co/t/querystring-to-search-nested-objects/159931/1 "2018-12-07T12:48:11Z")

</div>

I have the following mapping

```auto
"schema": {
          "type": "nested",
          "properties": {
            "description": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            },
            "name": {
              "type": "text",
              "fields": {
                "keyword": {
                  "type": "keyword",
                  "ignore_above": 256
                }
              }
            }

```

I want to search the terms inside the schema, How to write the querystring for this?  
I tried the below query string and its returning null  
`http://localhost:9200/test/_search?q=schema.name:*abc*`. But there is a match inside the data. Please let me know how to write querystring to search inside nested objects.

---

<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:** [January 4, 2019, 12:48pm UTC](https://discuss.elastic.co/t/querystring-to-search-nested-objects/159931/2 "2019-01-04T12:48:15Z")

</div>

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