Skip to content

Instantly share code, notes, and snippets.

@ryantology
Created November 30, 2012 17:57
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 ryantology/4177372 to your computer and use it in GitHub Desktop.
Save ryantology/4177372 to your computer and use it in GitHub Desktop.
# Intended Query
{
"query": {
"bool": {
"must": [
{
"query_string": {
"query": "intel",
"fields": [
"Name^5",
"Description"
]
}
}
],
"must_not": [
{
"term": {
"ContentTypeId": 15
}
}
]
}
},
"size": 20,
"facets": {
"topics": {
"terms": {
"field": [
"Categories.ParentId"
],
"size": 300
}
},
"subtopics": {
"terms": {
"field": [
"Categories.Id"
],
"size": 300
}
},
"industrytechnology": {
"terms": {
"field": [
"Classifications.Id"
],
"size": 300
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment