title: Solr - NGramFilterFactory dont works
body: <p>I am trying configure my Solr (with sunspot, rails), to works like this:</p>
  
  <p>Given a name: Willie Price
  I want be able to search for: llie (for exemple)</p>
  
  <p>On my schema.xml I added:</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.NGramFilterFactory" minGramSize="2" maxGramSize="15"/&gt;
    &lt;/analyzer&gt;
  
    &lt;analyzer type="query"&gt;
      &lt;tokenizer class="solr.StandardTokenizerFactory"/&gt;
      &lt;filter class="solr.StandardFilterFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p>My Rails model:</p>
  
  <pre><code>  searchable do
      text :name, :as =&gt; :ngram
    end
  </code></pre>
  
  <p>I also try just:</p>
  
  <pre><code>  searchable do
      text :name
    end
  </code></pre>
  
  <p>On my controller:</p>
  
  <pre><code> @search = Client.search do
      keywords params[:search]
   end
  </code></pre>
  
  <p>And also try this:</p>
  
  <pre><code>  @search = Client.search do
      full_text params[:search]
    end
  </code></pre>
  
  <p>The problem: I just be able to search using complete word, so given "Willie Price" only works with Willie or Price.</p>
  
  <p>Thanks a lot</p>