Skip to content

Instantly share code, notes, and snippets.

@cipri7329
Created October 14, 2016 09:14
Show Gist options
  • Save cipri7329/a2571f074a2a815e0d5e6b49ea64c3b5 to your computer and use it in GitHub Desktop.
Save cipri7329/a2571f074a2a815e0d5e6b49ea64c3b5 to your computer and use it in GitHub Desktop.
some simple quick commands to test an elasticsearch node
GET _cluster/state?pretty
GET _search
{
    "query": {
        "match_all": {}
    }
}
PUT /twitter/tweet/2
{
    "user" : "kimchy",
    "post_date" : "2009-11-15T14:12:12",
    "message" : "trying out Elastic Search 2"
} 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment