Elastic search how to ignore a field in mapping

Ah. I take it from this example that you're trying to completely discard the "c" field, via "enabled":false

If that's your intent, you've only got 1 small error: you've created the mapping of ftype under the comtest index, but when you add data, you're using /comtest/t/1 which means it's trying to use the mapping t, which doesn't exist.