Skip to content
This repository has been archived by the owner on Aug 3, 2018. It is now read-only.

Filter by attribute with range #85

Open
damonsson opened this issue Jan 5, 2018 · 1 comment
Open

Filter by attribute with range #85

damonsson opened this issue Jan 5, 2018 · 1 comment

Comments

@damonsson
Copy link

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
Copy link

psihius commented Mar 8, 2018

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants