title: How to add custom product on catalog search collection?
body: <p>Currently i am trying to add custom product on CatalogSearch product collection . Currently i am working on <code>Mage_CatalogSearch_Model_Layer</code>. I know that its core part but after working my code properly i manage with override <code>CatalogSearch_Model</code>.</p>
  
  <p>Currently i am working on this method</p>
  
  <pre><code> public function prepareProductCollection($collection)
      {
          $collection
              -&gt;addAttributeToSelect(Mage::getSingleton('catalog/config')-&gt;getProductAttributes())
              -&gt;addSearchFilter(Mage::helper('catalogsearch')-&gt;getQuery()-&gt;getQueryText())
              -&gt;setStore(Mage::app()-&gt;getStore())
              -&gt;addMinimalPrice()
              -&gt;addFinalPrice()
              -&gt;addTaxPercents()
              -&gt;addStoreFilter()
              -&gt;addUrlRewrite();
  
          Mage::getSingleton('catalog/product_status')-&gt;addVisibleFilterToCollection($collection);
          Mage::getSingleton('catalog/product_visibility')-&gt;addVisibleInSearchFilterToCollection($collection);
  
  // my custom code start
  
  $collection2 = Mage::getModel('catalog/product')-&gt;getCollection()-&gt;addFieldToFilter('entity_id', array(1,2));
  
  $collectiondata=$collection2-&gt;getData();
  
  foreach($collectiondata as $customdata)
  {
  $collection-&gt;addItem($customdata);
  }
  
          return $this;
      }
  </code></pre>
  
  <p>this code add my custom product to collection but issue start when when in search result no product found.Means if in search product found then it add my custom product otherwise not.</p>
  
  <p>I want to know where i am making mistake ? or any step missing. Any help will be appreciated</p>
  
  <p>Thank you</p>