Expand my Community achievements bar.

Searching with filters cannot return no results

Avatar

Former Community Member

I am writing a custom component for searching tasks, I've added search filters to the search like:

     filter.addCondition("procVar.CompanyName", Operator.EQUALS, companyName, Connective.AND);

when there is exact match, the search results are correct, however, when there is no match for the filters,

the search returns all tasks, it seems never return null or no result.

how to return no results if there is no match for the criteria?

1 Reply

Avatar

Former Community Member

Silly me, it was using another filter to do the search.