title: How to configure Solr to do partial word matching
body: <p>Given the following set of values how do I configure the field to return values that are partial word matches but that also match the entire search term?</p>
  
  <p>Values:</p>
  
  <pre><code>Texas State University
  Stanford University
  St. Johns College
  </code></pre>
  
  <h2>Desired results examples:</h2>
  
  <p>Search Term: <code>sta</code></p>
  
  <p>Desired Results:</p>
  
  <pre><code>Texas State University
  Stanford University
  </code></pre>
  
  <p>Search Term: <code>stan</code></p>
  
  <p>Desired Results:</p>
  
  <pre><code>Stanford University
  </code></pre>
  
  <p>Search Term: <code>st un</code></p>
  
  <p>Desired Results:</p>
  
  <pre><code>Texas State University
  Stanford University
  </code></pre>
  
  <h2>This is what I've tried so far:</h2>
  
  <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.StopFilterFactory" words="stopwords.txt"/&gt;
      &lt;filter class="solr.StandardFilterFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
      &lt;filter class="solr.PorterStemFilterFactory"/&gt;
      &lt;filter class="solr.EdgeNGramFilterFactory" minGramSize="2" maxGramSize="15" side="front"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>
  
  <p>I think my problem is with the <code>EdgeNGramFilterFactory</code>. As shown above, the second search for <code>stan</code> returns all three of the values shown instead of only <code>Stanford</code>. But, without the <code>EdgeNGramFilterFactory</code>, partial words don't match at all.</p>
  
  <p><strong>What is the correct configuration for a Solr field to return values that are partial word matches but that also match the entire search term?</strong></p>