Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created March 18, 2012 05:06
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 Vineeth-Mohan/2069060 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/2069060 to your computer and use it in GitHub Desktop.
Query JSON
{
"query": {
"query_string": {
"default_field": "names.name",
"query": "dinos"
}
},
"highlight": {
"fields": {
"_all": {}
}
}
}
Output JSON
{
took: 3
timed_out: false
_shards: {
total: 2
successful: 2
failed: 0
}
hits: {
total: 1
max_score: 0.11506981
hits: [
{
_index: algotree
_type: public
_id: IlUuOx_kSrO3_zGzmV9dmw
_score: 0.11506981
_source: {
names: [
{
name: then the dinos came
}
{
name: then something bad happenend with dinos
}
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment