elasticsearch-tips

Tips

1
2
3
4
5
6
#show elasticsearch database
curl 'localhost:9200/_cat/indices?v'
#delete elasticsearch database
curl -XDELETE 'localhost:9200/xxxxxxx?pretty'
#set limit variable
curl -XPUT localhost:9200/_template/template_name -d '{"template": "*", "order": 0, "settings": {"index": {"mapping": {"total_fields": {"limit": 10000}}}}, "version": 1}'