mirror of https://github.com/bpb27/tta-elastic
13 lines
434 B
JavaScript
13 lines
434 B
JavaScript
import bodybuilder from 'bodybuilder';
|
|
|
|
// greater than date 01/20/17
|
|
export const presidentialRange = builder => builder.filter('range', 'date', { gte: 1484899200000 });
|
|
export const hideRetweets = builder => builder.filter('match', 'isRetweet', false);
|
|
|
|
export const wrapper = custom =>
|
|
bodybuilder()
|
|
// .andFilter('bool', presidentialRange)
|
|
// .andFilter('bool', hideRetweets)
|
|
.orFilter('bool', custom)
|
|
.build();
|