index > type > documents
- filter: boolean, exactly value, no score, cached, faster
- query: relevent, full text, score, not cached, slower
- term: analyzed
- match: not analyzed, date, integer
- bool > must: AND
- bool > must_not: NAND
- bool > should: OR
- filter > terms: mutil values
- range > from
- range > to
GET index/type/_search
{
"filter": {
"and": {
"filters": [
{
"term": {
"date": "8_7_2015"
}
},
{
"range": {
"count": {
"gt": 1
}
}
}
]
}
}
}GET index/type/_search
{
"aggs": {
"by_pkg": {
"terms": {
"field": "bundleid_pkg"
}
}
}
}