Nethence Newdoc Olddoc Lab Your IP BBDock  

Elastic Notes

draft

Checking

Check the cluster health,

    curl -XGET 'http://elastic:9200/_cluster/health?pretty=true'

Look for existing indexes,

curl 'elastic:9200/_cat/indices?v'

Check that there’s something, at least mappings, in the indexes,

TODO show mappings

Injecting

Inject some indexes into Elastic,

curl -s -XPUT 'http://elastic:9200/indexname' -d @PUT_indexname.json

Wiping out the data

If you need to start from scratch on a deployment process for example, here’s how to wipe an index,

curl -XDELETE http://elastic:9200/indexname

Home | GitHub | Donate