allow msg search field from, to, type, body
params.search in format "search: {to: 'abc@def.com', type: 'groupchat'}"