Open TomonoriSoejima opened 2 years ago
POST /_template/template1 { "index_patterns": [ "index*" ], "settings": { "index": { "number_of_shards": 1, "number_of_replicas": 1 } }, "mappings": { "properties": { "field1": { "type": "text" } } } }
jo -p field1=f1 | http -b POST http://localhost:9200/index_go/_doc/1
create index pattern
add 2nd document
jo -p field1=ea, field2=jo | http -b POST http://localhost:9200/index_go/_doc/2
POST /_template/template1 { "index_patterns": [ "index*" ], "settings": { "index": { "number_of_shards": 1, "number_of_replicas": 1 } }, "mappings": { "properties": { "field1": { "type": "text" }, "field2": { "type": "text" } } } }
jo -p field1=f1 | http -b POST http://localhost:9200/index_go/_doc/1
create index pattern
add 2nd document
jo -p field1=ea, field2=jo | http -b POST http://localhost:9200/index_go/_doc/2