Magento – remove category filter on catalog search

catalogsearchce-1.8.1.0

If I add product to a category the catalog search works perfectly. But I dont want to use category filter on this. Actually I dont use category in my project.

Edit: I want to show category-less products on catalogsearch result page. That's why I want to remove category filter.

So, how can I remove category filter on catalog search? I think It's about core code but I dont know which file I need to edit.

Best Answer

Add the following node to local.xml file of your theme:

<catalogsearch_result_index>
    <reference name="catalogsearch.leftnav">
        <action method="unsetChild"><name>category_filter</name></action>
    </reference>
</catalogsearch_result_index>