Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: gh-pages
Fetching contributors…

Cannot retrieve contributors at this time

62 lines (61 sloc) 1.881 kb
{
"query": {
"multi_match": {
"fields": [
"title.substring^3",
"description.substring",
"body.substring",
"title.yomi"
],
"query": "{{query_string}}",
"type": "most_fields"
}
},
"size": {{default top_hits_size 10}},
"_source": {
"include": ["title", "url", "body", "lastModified", "image_url"]
},
"highlight": {
"fragment_size": {{default top_hits_fragment_size 20}},
"pre_tags" : ["<em>"],
"post_tags" : ["</em>"],
"fields": {
"body": {}
}
},
"aggs": {
"top_sites": {
"terms": {
"field": "{{default collapse_field "url.domain"}}",
"order": {
"top_hit": "desc"
},
"size": {{default top_sites_size 3}}
},
"aggs": {
"top_site_hits": {
"top_hits": {
"_source": {
"include": ["title", "url", "body", "lastModified", "image_url"]
},
"highlight": {
"fragment_size": {{default top_sites_fragment_size 12}},
"pre_tags" : ["<em>"],
"post_tags" : ["</em>"],
"fields": {
"body": {}
}
},
"size": {{default top_sites_hits_size 2}}
}
},
"top_hit": {
"max": {
"script": "doc.score",
"lang": "groovy"
}
}
}
}
}
}
Jump to Line
Something went wrong with that request. Please try again.