In Range i need and as well or condition for min and max rent
Currently i am using
range-from:min_rent:max_rent and range-to:min_rent:max_rent which are working cool.
i need ((min_rent >20 && max_rent <100) OR (min_rent ==0 && max_rent ==0))
Please let me know how i can implement this in low search
Replies
Low 3 Mar 2016 22:24
The short answer is: you can't.
The long answer is: you would need a custom filter for that.
Combining two different (sets of) parameters with OR is something that currently doesn't fit in EE's paradigm of handling tags and parameters. Look at the native channel:entries tag -- the only way to use OR, is in param="1|2", where the param should equal 1 OR 2. Combining different params with OR is not possible. The same is true for Low Search, unless if you create a custom filter to specifically handle that.