Magento catalogsearch does not working

It is very simple. Please follow the step.

Go to this path app/code/core/mage/catalogsearch/block/result.php

copy this file and make app/code/local/mage/catalogsearch/block/result.php

step 1 ) Uncomment lines 149 and 150

$this->getListBlock()
->setCollection($this->_getProductCollection());

step 2 ) Modify the line 172

change this line
$this->_productCollection = $this->getListBlock()->getLoadedProductCollection();

to

$this->_productCollection = Mage::getSingleton(‘catalogsearch/layer’)->getProductCollection();

Goto the admin  panel (System -> Index Management) and Reindex
Goto the System -> Config -> Catalog -> “Catalog Search”

 

hope it will work.