ElasticSearch command lines
curl -XPUT 'localhost:port/indice?pretty'
curl -XDELETE 'localhost:port'/indice?pretty'
|
Actualizar documento
|
curl -XPOST 'address:port/indice/type/id/_update?pretty' -d '{ "field": "new_value" }' |
|
Borrar documento - opción 1 (borrar un doc)
|
curl -XDELETE 'address:port/indice/type/id?pretty' |
|
Borrar documento - opción 2 (borrar múltiples docs)
|
curl -XDELETE 'address:port/indice/external/_query?pretty' -d '{ "query": { "match": { "field": "value" } } }' |
curl 'http://localhost:port/_cat/indices?v'
curl -XPUT 'localhost:port/indice/type/id?pretty' -d '
{
"field" : "value"
}'
curl 'localhost:9200/_cat/health?v'
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.