lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Keller <>
Subject Suggester
Date Tue, 21 Apr 2015 14:16:57 GMT
Hello together,

I have some problems with the Solr 5.1.0 suggester. 
I followed the instructions in
and also tried the techproducts example delivered with the binary package, which is working

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">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt"
        <filter class="solr.LowerCaseFilterFactory"/>

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>

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.


View raw message