Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let facetValues = ['BMW', 'Mercedes','Honda'] //(put for simplicity)
- facetValues.forEach(value => {
- elasticQuery = elasticQuery.orFilter('term', 'manufacturer', value)
- })
- let facetValues = [2016, 2017, 2018] //(put for simplicity)
- facetValues.forEach(value => {
- elasticQuery = elasticQuery.orFilter('term', 'production_year', value)
- })
Add Comment
Please, Sign In to add comment