Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.3 勘误 #143

Open
tade0726 opened this issue May 22, 2018 · 0 comments
Open

1.3 勘误 #143

tade0726 opened this issue May 22, 2018 · 0 comments

Comments

@tade0726
Copy link

原文中的请求链接会出现报错,需要添加 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": {}
    }
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant