title: How to make solr suggestion work for a specific field?
body: <p>I am trying to implement the auto suggest of solr  this is the changes that I made in solrconfig.xml file</p>
  
  <pre><code>&lt;requestHandler class="org.apache.solr.handler.component.SearchHandler" name="/suggest"&gt;
  &lt;lst name="defaults"&gt;
    &lt;str name="spellcheck"&gt;true&lt;/str&gt;
    &lt;str name="spellcheck.dictionary"&gt;suggest&lt;/str&gt;
    &lt;str name="spellcheck.onlyMorePopular"&gt;true&lt;/str&gt;
    &lt;str name="spellcheck.count"&gt;5&lt;/str&gt;
    &lt;str name="spellcheck.collate"&gt;true&lt;/str&gt;
  &lt;/lst&gt;
  &lt;arr name="components"&gt;
    &lt;str&gt;suggest&lt;/str&gt;
  &lt;/arr&gt;
  &lt;/requestHandler&gt;
  &lt;searchComponent class="solr.SpellCheckComponent" name="suggest"&gt;
  &lt;lst name="spellchecker"&gt;
    &lt;str name="name"&gt;suggest&lt;/str&gt;
    &lt;str name="classname"&gt;org.apache.solr.spelling.suggest.Suggester&lt;/str&gt;
    &lt;str name="lookupImpl"&gt;org.apache.solr.spelling.suggest.tst.TSTLookupFactory&lt;/str&gt;
    &lt;str name="field"&gt;displayName&lt;/str&gt;  &lt;!-- the indexed field to derive suggestions from --&gt;
    &lt;float name="threshold"&gt;0.005&lt;/float&gt;
    &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
  &lt;/lst&gt;
  &lt;/searchComponent&gt;
  </code></pre>
  
  <p>when I try to query with sample input as 'p' </p>
  
  <pre><code>http://localhost:8983/solr/food/suggest?q=p&amp;wt=json&amp;indent=true
  </code></pre>
  
  <p>it returns 5 words </p>
  
  <p><code>"pizza", "potato", "pasta", "protein", "premium"</code></p>
  
  <p>but in the displayName field I got words like paneer , palak etc which is not showing up why is it so?</p>