Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -X PUT 'localhost:9200/cambio_indice?pretty=true' -d '{
- "mappings" : {
- "el_tipo" : {
- "properties" : {
- "name" : { "type" : "string" },
- "age" : { "type" : "integer" },
- "read" : { "type" : "integer" }
- }}}}'
- curl -X PUT 'localhost:9200/cambio_indice/el_tipo/1?pretty=true' -d '{
- "name" : "Eduardo Inda",
- "age" : 23
- }'
- curl -X PUT 'localhost:9200/cambio_indice/el_tipo/2?pretty=true' -d '{
- "jose" : "stuff",
- "ramon" : 23,
- "garcia" : 1
- }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement