filter works except case 1 (when search by name, msg type, and doc type)