Make a nested field not searchable in elasticsearch 5.6


(Arjun Subramanyam Varalakshmi) #1

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.


(system) #2

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