Skip to content

Instantly share code, notes, and snippets.

@macnibblet
Created February 28, 2014 08:53
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 macnibblet/9267633 to your computer and use it in GitHub Desktop.
Save macnibblet/9267633 to your computer and use it in GitHub Desktop.
{
"query": {
"filtered": {
"filter": {
"bool": {
"must": [
{
"terms": {
"category": [
"85"
],
"execution": "or"
}
},
{
"terms": {
"company": [
"21"
],
"execution": "or"
}
},
{
"geo_distance": {
"distance": "5000km",
"locations.coordinates": "59.85856380000001,17.6389267"
}
}
],
"must_not": [
],
"should": [
]
}
},
"query": {
"bool": {
"must": [
],
"must_not": [
],
"should": [
{
"terms": {
"keywords": [
"dolor",
"ut"
],
"boost": 2
}
},
{
"term": {
"name": {
"value": "dolor ut",
"boost": "1"
}
}
},
{
"term": {
"description": {
"value": "dolor ut",
"boost": "0.5"
}
}
}
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment