« Return to Thread: TextMatcherEditor filters by all or any filter strings?

TextMatcherEditor filters by all or any filter strings?

by SimonB2 :: Rate this Message:

Reply to Author | View in Thread

Hi list

I'm trying to filter a table using a TextMatcherEditor. Specifically I want the table to show rows that contain any of the terms in the array of strings I pass through to #setFilterText(String[] newFilters). The documentation suggests this should work:

CONTAINS will produce Matcher objects that test if at least one searchable string for an Object contains one of the filter strings anywhere within itself.

However the behaviour I see is that the rows that are displayed are those that contain all of the terms. Should the documentation read "... contains all of the filter strings ..." or am I missing something?

Thanks
Simon

 « Return to Thread: TextMatcherEditor filters by all or any filter strings?