Skip to content

Instantly share code, notes, and snippets.

Created October 12, 2011 10:31
Show Gist options
  • Save anonymous/1280860 to your computer and use it in GitHub Desktop.
Save anonymous/1280860 to your computer and use it in GitHub Desktop.
## REQUEST
{
"fields": [
"file.title",
"file.content_type"
],
"query": {
"query_string": {
"query": "amplifier"
}
},
"highlight": {
"fields": {
"file": {}
}
}
}
## RESPONSE
{
took: 49
timed_out: false
_shards: {
total: 1
successful: 1
failed: 0
}
hits: {
total: 1
max_score: 0.005872132
hits: [
{
_index: test
_type: attachment
_id: OXSKVtIMSn-9fnDKsjCU-Q
_score: 0.005872132
fields: {
file.title: ISL99201
}
highlight: {
file: [
Mono <em>Amplifier</em> • Filterless Class D with Efficiency > 86% at 400mW The ISL99201 is a fully integrat
mono <em>amplifier</em>. It is designed to maximize performance for mobile phone applications. The applicat
]
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment