elasticsearch-definitive-guide-cn icon indicating copy to clipboard operation
elasticsearch-definitive-guide-cn copied to clipboard

1.3 勘误

Open tade0726 opened this issue 7 years ago • 0 comments
trafficstars

原文中的请求链接会出现报错,需要添加 header

原文:

curl -XGET 'http://localhost:9200/_count?pretty' -d '
{
    "query": {
        "match_all": {}
    }
}
'

修改:

curl -XGET 'http://localhost:9200/_count?pretty' -H 'Content-Type: application/json' -d '
{
    "query": {
        "match_all": {}
    }
}
'

tade0726 avatar May 22 '18 03:05 tade0726