Make a nested field not searchable in elasticsearch 5.6

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.

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