# Make a nested field not searchable in elasticsearch 5.6

**URL:** <https://discuss.elastic.co/t/make-a-nested-field-not-searchable-in-elasticsearch-5-6/120741>\
**Category:** Elasticsearch\
**Created:** [February 20, 2018, 11:40pm UTC](https://discuss.elastic.co/t/make-a-nested-field-not-searchable-in-elasticsearch-5-6/120741 "2018-02-20T23:40:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjun\_subramanyam\_va](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@Arjun\_subramanyam\_va](https://discuss.elastic.co/u/Arjun_subramanyam_va)\
**Post date:** [February 20, 2018, 11:40pm UTC](https://discuss.elastic.co/t/make-a-nested-field-not-searchable-in-elasticsearch-5-6/120741/1 "2018-02-20T23:40:00Z")

</div>

I have a field which is nested inside other field, I want to make that field not searchable my mapping looks like this

dataset": {  
"properties": {  
"identifier": {  
"type": "text"  
},  
"title": {  
"type": "text",  
"term\_vector" : "with\_positions\_offsets"  
},  
"description": {  
"type": "text"  
},  
"refinement": {  
"type": "text"  
},  
"isAbout": {  
"type": "text"  
},  
"primaryPublications": {  
"type": "text"  
},  
"aggregation": {  
"type": "text",  
"include\_in\_all": false,  
"store": "no"  
},  
"availability": {  
"type": "text",  
"include\_in\_all": false  
}  
}  
}

when I get the mapping using curl command I can still the fields for which I marked include\_in\_all false. is there any other way to make the field non-searchable.

---

<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:** [March 20, 2018, 11:40pm UTC](https://discuss.elastic.co/t/make-a-nested-field-not-searchable-in-elasticsearch-5-6/120741/2 "2018-03-20T23:40:47Z")

</div>

Closed on March 20, 2018, 11:40pm UTC

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