guys.
I need to override 2 functions in different classes (CatalogSearch/Layer.php and CatalogSearch/Mysql4/Fulltext/Collection.php). So, I have a config file:
The resource models are probably handled separately, try this:
<global>
<models>
<catalogsearch>
<rewrite>
<layer>My_Modulename_Model_CatalogSearch_Layer</layer>
</rewrite>
</catalogsearch>
<catalogsearch_mysql4>
<rewrite>
<fulltext_collection>My_Modulename_Model_CatalogSearch_Mysql4_Fulltext_Collection</fulltext_collection>
</rewrite>
</catalogsearch_mysql4>
</models>
</global>