Skip to content

Instantly share code, notes, and snippets.

@radu-gheorghe
Created August 29, 2014 07:14
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 radu-gheorghe/16fcb90f5cb835f0b2e6 to your computer and use it in GitHub Desktop.
Save radu-gheorghe/16fcb90f5cb835f0b2e6 to your computer and use it in GitHub Desktop.
{
"size": 10,
"query": {
"filtered": {
"query": {
"bool": {
"should": [
{
"multi_match": {
"analyzer": "whitespace_shingle",
"type": "cross_fields",
"query": "Ancients",
"fields": [
"title.raw^60",
"authors.raw^40",
"subjects.raw^20",
"title",
"authors",
"subjects"
]
}
},
{
"multi_match": {
"type": "cross_fields",
"query": "Ancients",
"fields": [
"title.stemmed",
"subjects.stemmed"
]
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment