Sylius / SyliusElasticSearchPlugin

DEPRECATED! Use https://github.com/BitBagCommerce/SyliusElasticsearchPlugin instead.
22 stars 26 forks source link

Filter by attribute with range #85

Open damonsson opened 6 years ago

damonsson commented 6 years ago

Is it possible to filter attributes with range? For example, an attribute is a size, and I would like filter shoe products with size attribute between 40-45?

Exists filter range, and filter (multi) dynamic aggregate in ONGR Filters. Unfortunately, it does not looks like I can use it together.

ONGR ElasticsearchDSL and own custom query is the option? Is it possible with it at all?

psihius commented 6 years ago

@damonsson well, attributes right now are all handled as text. To have the ability to filter integers, booleans and all other types of data, we need to look into how this can be accomplished with Elastic, probably making different type documents. Basically this is a research task first.

I belive there might be a way to just make your own filter type and override how it generates queries and special-case the shoe size attribute as a hack.