How to filter by "OR" logic using Filterable

Hi all,

according to Filterable documentation, if multiple filters are applied to a Filterable container, the items should match all the filters, ie the container should apply “AND” logic for all the filters.

On the other hand, I need more flexible logic like:

filter1 OR fitler2
filter1 OR (filter2 AND filter3)

Is it possible to achive this using the available interfaces in vaadin?

Unfortunately, the current Filterable interface is very limited. There are plans to improve (or possibly even replace), probably in Vaadin 7, but at the moment I cannot promise any specific time table.

So no, the interface currently does not support logical operations other than an implicit AND.

How to get around this at the moment would depend on which container you are using - at least some containers do provide a way to override the filtering logic or the filter query construction.