MergeMappingException when putting empty mapping

You can't change the mapping of a field that is already mapping (its index
aspect for example).

On Wed, May 16, 2012 at 7:42 PM, Jaap Taal jaap@q42.nl wrote:

When I don't try to put an empty mapping, but get the mappping first:

curl -XGET 'indexname/mytype/_mapping' > mapping.json

I alter the mapping.json (I'm trying to add "index" : "not_analyzed"
to a property)

And then I try to PUT the mapping again:

curl -XPUT 'indexname/mytype/_mapping' -d '
...contents from json file...
'

I also get the error:
mapper [otherProp] has different index values, mapper [otherProp] has
different index_analyzer, mapper [otherProp] has different
search_analyzer

I probably assume that I can change the "index" of a property while
there is data in the index for this type...