Skip to content

Instantly share code, notes, and snippets.

@Alex-Ikanow
Created November 16, 2011 15:07
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 Alex-Ikanow/1370278 to your computer and use it in GitHub Desktop.
Save Alex-Ikanow/1370278 to your computer and use it in GitHub Desktop.
Facets causing memory problems in 0.17.9
curl -XGET 'http://betadev:9200/document_index,doc_COMMUNITYID/document_index' -d '
{
"query":{
"bool":{
"must":[{
"bool":{
"must":{
"match_all":{}
}
}
},
{
"constant_score":{
"filter":{
"bool":{
"must":{
"terms":{
"groupids":["COMMUNITYID"
]
}
}
}
}
}
}
]
}
},
"facets":{
"geo":{
"terms":{
"field":"locs",
"size":0
}
},
"events":{
"terms":{
"field":"events.event_index",
"size":10,
"regex":"^Event\\|.*"
}
}
},
"size":1000
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment