Fixed bug that was using Post datacontext function getPosts instead of searchPosts.