Updated code to reflect new post keys

Changed some logic to parse the new posts and updated all of the unit
test that used that functionality. Also removed the unneeded echo for
the search type