vuestorefront / storefront-query-builder

ElasticSearch Query builder from the abstract "SearchQuery" object used by storefront-api, vue-storefront-api and vue-storefront projects
MIT License
7 stars 21 forks source link

Support for not predefined price ranges #16

Closed Fifciu closed 4 years ago

Fifciu commented 4 years ago

I am working on the PWA Module that allows us to set up dynamic range price filters (not only predefined). To make it work I modified applyAggregations method. Now it tries to look for price filters inside appliedFilters. If it finds some it is added to aggregations buckets.

With this PR, all I need it to work is: https://github.com/Fifciu/vsf-price-selector/blob/master/index.ts