title: Magento Class Method Override Not Working
body: <p>I'm trying to override the Catalog Search functionality of Magento so that it searches using 'AND' rather than 'OR' for search terms.</p>
  
  <p>The 'correct' way to do this, that is update proof, is to create my own module. So this is what I've done. Unfortunately, this isn't working. The updated method is not being called.</p>
  
  <p>Here's the config file section :</p>
  
  <pre><code>&lt;global&gt;
          &lt;models&gt;
              &lt;catalogsearch&gt;
                  &lt;rewrite&gt;
                      &lt;fulltext&gt;MyNameSpace_MyModule_Model_CatalogSearch_Fulltext&lt;/fulltext&gt;
                  &lt;/rewrite&gt;
              &lt;/catalogsearch&gt;
          &lt;/models&gt;
  &lt;/global&gt;
  </code></pre>
  
  <p>The method I'm trying to override is Mage_CatalogSearch_Model_Fulltext, and I'm actually doing an 'extend' - eg, </p>
  
  <pre><code>class MyNameSpace_MyModule_Model_CatalogSearch_Fulltext extends Mage_CatalogSearch_Model_Fulltext
  {
      public function prepareResult($object, $queryText, $query)
      {
          die("It works...");
      }
  }
  </code></pre>
  
  <p>I had read somewhere that there's no point doing this 'overriding' if the class you're actually trying to override is never called with a particular class 'creator' method? If this is true, this may explain why my new class method is never used?</p>
  
  <p>So in that case, how to override this method? Am I doing the right thing here?</p>