Added method to search posts