title: Fuzzy search with Solr and sunspot
body: <p>I have installed Solr and the Sunspot gem for my Rails 3.0 app.</p>
  
  <p>My goal is to do fuzzy search.
  For example, I want the search term "Chatuea Marguxa" be found as "Château Margaux".</p>
  
  <p>Actually, only the same exact words are found, so fuzzy didn't work at all.</p>
  
  <p>My model:</p>
  
  <pre><code>  searchable do
      text :winery
    end 
  </code></pre>
  
  <p>My controller:</p>
  
  <pre><code>   search = Wine.search do
       fulltext 'Chatuea Marguxa'
     end 
  </code></pre>
  
  <p>The solr schemas I tried, with ngrams:</p>
  
  <pre><code>&lt;fieldType name="text" class="solr.TextField" omitNorms="false"&gt;
    &lt;analyzer&gt;
      &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
      &lt;filter class="solr.StandardFilterFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15"/&gt;
    &lt;/analyzer&gt;
  </code></pre>
  
  <p></p>
  
  <p>I also tried with double metaphone:</p>
  
  <pre><code>&lt;analyzer&gt;
          &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
          &lt;filter class="solr.StandardFilterFactory"/&gt;
          &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
          &lt;filter class="solr.PorterStemFilterFactory"/&gt;
          &lt;filter class="solr.PhoneticFilterFactory" encoder="DoubleMetaphone" inject="true"/&gt;
        &lt;/analyzer&gt;
  </code></pre>
  
  <p>In both cases, I got 0 response. (after reindexing of course).</p>
  
  <p>What I did wrong ?</p>