title: Solr Suggester for Impl Class AnalyzingInfixLookupFactory
body: <p>I'm having a problem using Solr's suggest component, the implementation class that I want to use is AnalyzingInfixLookupFactory, I'm using this to get suggestions based on infix not only the prefix. Also I needed Solr to see the search term as one token. but the problem is that the Solr always returns suggestions based on the prefix not the infix.</p>
  
  <p>my Suggest component in solrconfig.xml:</p>
  
  <pre><code>  &lt;searchComponent name="suggest" class="solr.SuggestComponent"&gt;
  &lt;lst name="suggester"&gt;
    &lt;str name="name"&gt;mySuggester&lt;/str&gt;
    &lt;str name="lookupImpl"&gt;AnalyzingInfixLookupFactory&lt;/str&gt;      &lt;!-- org.apache.solr.spelling.suggest.fst --&gt;
    &lt;str name="dictionaryImpl"&gt;DocumentDictionaryFactory&lt;/str&gt;     &lt;!-- org.apache.solr.spelling.suggest.HighFrequencyDictionaryFactory --&gt; 
    &lt;str name="field"&gt;movie_name&lt;/str&gt;
    &lt;str name="weightField"&gt;movie_meter&lt;/str&gt;
    &lt;str name="buildOnCommit"&gt;true&lt;/str&gt;
    &lt;str name="suggestAnalyzerFieldType"&gt;text_general&lt;/str&gt;
  &lt;/lst&gt;
  </code></pre>
  
  <p></p>
  
  <p>the text_general in schema.xml:</p>
  
  <pre><code>  &lt;fieldType name="text_general" class="solr.TextField" positionIncrementGap="100"&gt;
    &lt;analyzer type="index"&gt;
      &lt;tokenizer class="solr.KeywordTokenizerFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
    &lt;/analyzer&gt;
    &lt;analyzer type="query"&gt;
      &lt;tokenizer class="solr.KeywordTokenizerFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;   
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  </code></pre>