curl -XGET '192.168.1.102:9200/_cat/indices?v&pretty'

curl -XDELETE 'http://192.168.1.102:9200/log*'

curl -XGET "http://192.168.1.102:9200/logstash-2018.09.06/_mapping?pretty"

curl -XPUT "http://192.168.1.102:9200/logstash-2018.09.06"

curl -XGET 'http://192.168.1.102:9200/_template/logstash'

curl -XGET "http://192.168.1.102:9200/cars/_search?pretty"

#修改mapping
curl -X PUT "192.168.1.102:9200/cars/_mapping/transactions" -H 'Content-Type: application/json' -d'
{
"properties": {
"make": {
"type": "text",
"fielddata": true
}}}'

curl -X GET "192.168.1.102:9200/cars/transactions/_search?pretty" -H 'Content-Type: application/json' -d'
{
"size" : 0,
"aggs" : {
"popular_colors" : {
"terms" : {
"field" : "color"
}}}}'

相关文章:

  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-14
  • 2021-06-17
  • 2021-11-14
  • 2022-12-23
  • 2021-07-10
  • 2021-09-26
  • 2021-09-23
相关资源
相似解决方案