Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created June 27, 2012 12:43
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/3003873 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/3003873 to your computer and use it in GitHub Desktop.
{
"size": 10,
"from": 0,
"highlight": {
"fields": {
"Content": {}
},
"pre_tags": [
"XT"
],
"post_tags": [
"YT"
]
},
"query": {
"bool": {
"must": [
{
"has_child": {
"type": "attachment",
"query": {
"query_string": {
"query": "poison",
"default_field": "ExtractedContent"
}
}
}
}
],
"should": [
{
"query_string": {
"query": "poison",
"default_field": "Content"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment