1 Reply Latest reply on Feb 10, 2011 10:36 PM by hkho

    Searching with filters cannot return no results

    hkho Level 1

      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?