title: Returning single word from Solr Suggester
body: <p>I am developing a web application, and am using Solr as search engine. I would like to add autocomplete functionality. To do this, I have added the Suggester component, and configured a separate field for it. This works ok.</p>
  
  <p>The problem is that Suggester returns the whole value of the field. For example, if the name of an article is "A newsworthy item" and I search for "new", it will return the whole "A newsworthy item", where I would like it to just return "newsworthy". In other words, return the individual word tokens.</p>
  
  <p>The schema looks like this:</p>
  
  <pre><code>&lt;fieldType name="text_autocomplete" class="solr.TextField" positionIncrementGap="100"&gt;
    &lt;analyzer&gt;
      &lt;tokenizer class="solr.WhitespaceTokenizerFactory"/&gt;
      &lt;filter class="solr.LowerCaseFilterFactory"/&gt;
    &lt;/analyzer&gt;
  &lt;/fieldType&gt;
  
  &lt;field name="term" type="text_autocomplete" indexed="true" stored="true" multiValued="false" /&gt;
  &lt;field name="weight" type="float" indexed="true" stored="true" /&gt;
  
  &lt;copyField source="name" dest="term"/&gt;
  </code></pre>
  
  <p>The values are copied into the "term" field. The Solr config:</p>
  
  <pre><code>&lt;!-- Search component --&gt;
  &lt;searchComponent name="suggest" class="solr.SuggestComponent"&gt;
    &lt;lst name="suggester"&gt;
      &lt;str name="name"&gt;suggester&lt;/str&gt;
      &lt;str name="lookupImpl"&gt;AnalyzingLookupFactory&lt;/str&gt;
      &lt;str name="dictionaryImpl"&gt;DocumentDictionaryFactory&lt;/str&gt;
      &lt;str name="field"&gt;term&lt;/str&gt;
      &lt;str name="weightField"&gt;weight&lt;/str&gt;
      &lt;str name="suggestAnalyzerFieldType"&gt;text_autocomplete&lt;/str&gt;
      &lt;str name="buildOnStartup"&gt;false&lt;/str&gt;
    &lt;/lst&gt;
  &lt;/searchComponent&gt;
  
  &lt;!-- Search handler --&gt;
  &lt;requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy"&gt;
    &lt;lst name="defaults"&gt;
      &lt;str name="suggest"&gt;true&lt;/str&gt;
      &lt;str name="suggest.count"&gt;10&lt;/str&gt;
      &lt;str name="suggest.dictionary"&gt;suggester&lt;/str&gt;
      &lt;str name="suggest.build"&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;
  </code></pre>
  
  <p>Can anyone suggest a schema and/or configuration that will make the Suggester return a single word? </p>