Skip to content

Commit

Permalink
Added range filter
Browse files Browse the repository at this point in the history
  • Loading branch information
igoristic committed Oct 2, 2020
1 parent ad18606 commit c79fe80
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ import { RouteDependencies } from '../../../../../types';

const queryBody = {
size: 0,
query: {
bool: {
must: [
{
range: {
timestamp: {
gte: 'now-12h',
},
},
},
],
},
},
aggs: {
types: {
terms: {
Expand Down

0 comments on commit c79fe80

Please sign in to comment.