Deleting a specific mapping/property within an index


(coys) #1

Hi, I've indexed some of my documents and built an index, some of the
properties are for e.g.
"ownership" : {
"dynamic" : "true",
"properties" : {
"author" : {
"type" : "string"
}
}
},
"plans" : {
"type" : "string"
},
It also has another property components, whose mapping I had not
specified and now it's messed up my index,
"components" : {
"dynamic" : "true",
"properties" : {
"ABC" : {
"dynamic" : "true",
I want to keep the rest of my index intact but delete the property/
mapping for components. Can someone please tell me how to do this?
I've tried curl -XDELETE 'http://localhost:9200/holisticsuites/suites/
components/' but to no avail. Thanks

--


(coys) #2

Hi, I found to link to a new thread which says this is not possible,
http://groups.google.com/group/elasticsearch/browse_frm/thread/5304086bbd4e68cf/5fe7859e93af671b?lnk=gst&q=delete#5fe7859e93af671b

Can someone please confirm that this is right and I need to build a
new index again, or is it actually possible to delete a specific
property attribute from the mapping?
Thanks!

--


(system) #3