How to delete the Mapping in elastic search


(narinder.izap) #1

Hi,
I am facing a problem, I have some type for which default mapping was
added. but later, i found the need to remap that type, so i deleted the
whole type, but in the index, its mapping is still present. Please give me
some way to delete the mappin.

Thanks


(Sam-3) #2

Try something like:
curl -XDELETE http://localhost:9200/INDEX/TYPE/_mapping

On Dec 17, 2:08 am, Narinder Kaur narinder.k...@izap.in wrote:

Hi,
I am facing a problem, I have some type for which default mapping was
added. but later, i found the need to remap that type, so i deleted the
whole type, but in the index, its mapping is still present. Please give me
some way to delete the mappin.

Thanks


(Shay Banon) #3

Note that this will delete also the actual data for the type.

On Mon, Dec 19, 2011 at 4:16 PM, Sam sam.brauer@gmail.com wrote:

Try something like:
curl -XDELETE http://localhost:9200/INDEX/TYPE/_mapping

On Dec 17, 2:08 am, Narinder Kaur narinder.k...@izap.in wrote:

Hi,
I am facing a problem, I have some type for which default mapping was
added. but later, i found the need to remap that type, so i deleted the
whole type, but in the index, its mapping is still present. Please give
me
some way to delete the mappin.

Thanks


(system) #4