Skip to content

Instantly share code, notes, and snippets.

@tlovett1
Created December 6, 2017 17:06
Show Gist options
  • Save tlovett1/dcf747fcc882f6ee30324738048a2aae to your computer and use it in GitHub Desktop.
Save tlovett1/dcf747fcc882f6ee30324738048a2aae to your computer and use it in GitHub Desktop.
{
"from": 0,
"size": 15,
"sort": [
{
"_score": {
"order": "desc"
}
}
],
"query": {
"function_score": {
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "santos dfgdfgdfgdf",
"operator": "and",
"type": "cross_fields",
"fields": [
"post_title^5",
"post_content",
"post_excerpt",
"terms.post_tag.name",
"terms.category.name",
"post_author.login^20",
"post_author.display_name^20",
"authors^20",
"meta.msr_speaker",
"meta.msr_other_speaker",
"meta.msr_author^20",
"meta.msr_other_author",
"meta.msr_longbiography",
"meta.msr_host",
"meta.tab_content",
"meta.msr_speaker.no_diacritics",
"meta.msr_other_speaker.no_diacritics",
"meta.msr_author.no_diacritics",
"meta.msr_other_author.no_diacritics",
"meta.msr_longbiography.no_diacritics",
"meta.msr_host.no_diacritics",
"meta.tab_content.no_diacritics"
]
}
}
]
}
},
"exp": {
"post_date_gmt": {
"scale": "14d",
"decay": 0.25,
"offset": "7d"
}
}
}
},
"post_filter": {
"bool": {
"must": [
{
"bool": {
"must": [
{
"terms": {
"terms.msr-content-type.slug": [
"publication"
]
}
}
]
}
},
{
"term": {
"post_type.raw": "msr-research-item"
}
},
{
"term": {
"post_status": "publish"
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment