# NEsted nad raw fields

**URL:** <https://discuss.elastic.co/t/nested-nad-raw-fields/95839>\
**Category:** Elasticsearch\
**Created:** [August 4, 2017, 8:17am UTC](https://discuss.elastic.co/t/nested-nad-raw-fields/95839 "2017-08-04T08:17:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xavi23](https://avatars.discourse-cdn.com/v4/letter/x/db5fbb/32.png) [@xavi23](https://discuss.elastic.co/u/xavi23)\
**Post date:** [August 4, 2017, 8:17am UTC](https://discuss.elastic.co/t/nested-nad-raw-fields/95839/1 "2017-08-04T08:17:11Z")

</div>

Hello,

Every time that I try to create a index that contain a nested raw field give the next error:  
Mapping definition for [diagnostico] has unsupported parameters: [fields : {raw={type=keyword}}]"

It's possible to create a nested raw field?

My index:

PUT test  
{  
"mappings": {  
"test": {  
"properties": {  
"obx": {  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"nhc":{"type":"keyword"},  
"fecha":{"type":"date"},  
"sexo":{  
"type": "text",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"altura":{  
"type": "integer",  
"fields": {  
"raw": {  
"type": "keyword"  
}  
}  
},  
"edad":{"type":"integer"},  
"diagnostico":{  
"type":"nested",  
"fields": {  
"raw": {  
"type": "keyword"

```
      }
        }
      }
  }
      }
    }
  }

```

Thanks.

---

<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:** [September 1, 2017, 8:17am UTC](https://discuss.elastic.co/t/nested-nad-raw-fields/95839/2 "2017-09-01T08:17:37Z")

</div>

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