search should return array of posts