discovery.zen.ping.multicast.ping.enabled: false
discovery.zen.ping.unicast.hosts: [host1,host2]
discovery.zen.minimum_master_nodes: 2
node.name: "Kapitan Żbik"
curl -XDELETE 'http://localhost:9200/_all/'
action.disable_delete_all_indices: true
curl -XPUT 'http://localhost:9200/pywaw/speaker/1' -d '{ "nick": "jasisz", "name": "Szymon", "height": 188 }'
>>>{"ok":true,"_index":"pywaw","_type":"speaker","_id":"1","_version":1}
curl -XPUT 'http://localhost:9200/pywaw/speaker/2' -d '{
"email": "bazooka@cannon.com",
"surname": "Hałas"
}
>>>
{"ok":true,"_index":"pywaw","_type":"speaker","_id":"2","_version":1}
curl -XPUT 'http://localhost:9200/pywaw/speaker/3' -d '{ "nick": "Dziwny człowiek", "height": "6 stóp" }'
>>>{"error":"MapperParsingException[Failed to parse [height]]; nested: NumberFormatException[For input string: \"6 stóp\"]; ","status":400}
curl -XGET localhost:9200/pywaw/speaker/_mapping?pretty=1
{
"speaker" : {
"properties" : {
"email" : {
"type" : "string"
},
"height" : {
"type" : "long"
},
"name" : {
"type" : "string"
},
"nick" : {
"type" : "string"
},
"surname" : {
"type" : "string"
}
}
}
curl -XPUT localhost:9200/pywaw/speaker/_mapping -d'{ "speaker" : { "properties" : { "height" : { "type" : "string" } } } }'
>>>{"error":"MergeMappingException[Merge failed with failures {[mapper [height] of different type, current_type [long], merged_type [string]]}]","status":400}