Skip to content

Instantly share code, notes, and snippets.

@niranjan-uma-shankar
Created August 16, 2012 23:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save niranjan-uma-shankar/3374366 to your computer and use it in GitHub Desktop.
Save niranjan-uma-shankar/3374366 to your computer and use it in GitHub Desktop.
curl -XGET 'http://localhost:9200/ninja/interests/_search?pretty=true' -d '
{
"query":{
"query_string":{"query":"entrepreneurs"}
},
"highlight" : {
"fields" : {
"name":{}
}
}
}'
{
"took" : 4,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 0,
"max_score" : null,
"hits" : [ ]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment