Added a simple and raw search operation into the IndexController
Refactoring the little search operation and moved it to the posts model