Skip to content

Instantly share code, notes, and snippets.

@ghoseb
Created July 10, 2012 10:49
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 ghoseb/3082632 to your computer and use it in GitHub Desktop.
Save ghoseb/3082632 to your computer and use it in GitHub Desktop.
Sample Query
{
"size": 10,
"from": 0,
"query": {
"filtered": {
"filter": {
"or": [{
"term": {
"publish_id": "1"
}
}, {
"term": {
"publish_id": "10"
}
}],
"and": [{
"term": {
"assignee": "unassigned"
}
}, {
"term": {
"priority": 1
}
}, {
"term": {
"tags": "foo"
}
}]
},
"query": {
"bool": {
"should": [{
"term": {
"name.partial": {
"value": "te",
"boost": 100.0
}
}
}, {
"text": {
"bio": {
"query": "te",
"boost": 25.0
}
}
}]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment