fullscale / elastic.js

A JavaScript implementation of the elasticsearch Query DSL
http://docs.fullscale.co/elasticjs/
MIT License
654 stars 163 forks source link

AndFilter Example #70

Closed awkysam closed 10 years ago

awkysam commented 10 years ago

I have been trying to get ANDFilter work but coulkdnt succed. PLEASE it would be great help if an example/sample could be provided

Thanks

awkysam commented 10 years ago

Figured out..thanks.....

ejs.AndFilter ([ ejs.TermFilter('City','XXX'), ejs.RangeFilter.field('log_date').from('2014-05-05 00:00:00.000').to('2014-05-11 00:00:00.000') ])