Fixed a search bug. Removed unpublished posts from search results.