Hello together,

I have some problems with the Solr 5.1.0 suggester. 
I followed the instructions in 
https://cwiki.apache.org/confluence/display/solr/Suggester and also tried the 
techproducts example delivered with the binary package, which is working well.

I added a field suggestions-Field to the schema:

<field name="suggestions" type="text_suggest" indexed="true" stored="true" 
multiValued="true“/>


And added some copies to the field:

<copyField source="content" dest="suggestions"/>
<copyField source="title" dest="suggestions"/>
<copyField source="author" dest="suggestions"/>
<copyField source="description" dest="suggestions"/>
<copyField source="keywords" dest="suggestions"/>


The field type definition for „text_suggest“ is pretty simple:

<fieldType name="text_suggest" class="solr.TextField" 
positionIncrementGap="100">
    <analyzer>
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt" />
        <filter class="solr.LowerCaseFilterFactory"/>
    </analyzer>
</fieldType>


I Also changed the solrconfig.xml to use the suggestions field:

<searchComponent class="solr.SuggestComponent" name="suggest">
  <lst name="suggester">
    <str name="name">mySuggester</str>
    <str name="lookupImpl">FuzzyLookupFactory</str>      
    <str name="dictionaryImpl">DocumentDictionaryFactory</str>
    <str name="field">suggestions</str>
    <str name="suggestAnalyzerFieldType">text_general</str>
    <str name="buildOnStartup">false</str>
  </lst>
</searchComponent>


For Tokens original coming from „title" or „author“, I get suggestions, but not 
any from the content field. 
So, what do I have to do?

Any help is appreciated.


Martin

Reply via email to