Suggester with filter

1 like 0 dislike
5 views
Trying to implement a suggester with filter. The suggester I got up and running looks like this:

  <searchComponent name="suggest" class="solr.SuggestComponent">
    <lst name="suggester">
      <str name="name">magicsSuggester</str>
      <str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookupFactory</str>
      <str name="field">fulltext_1_de</str>
      <str name="weightField">popularity</str>
      <str name="suggestAnalyzerFieldType">string</str>
      <str name="buildOnOptimize">true</str>
    </lst>
  </searchComponent>
  <requestHandler name="/suggest" class="solr.SearchHandler" startup="lazy">
    <lst name="defaults">
      <str name="suggest">true</str>
      <str name="suggest.count">10</str>
      <str name="suggest.dictionary">magicsSuggester</str>
    </lst>
    <arr name="components">
      <str>suggest</str>
    </arr>
  </requestHandler>

But "qf", "fq" or "cfq" show no effect. What am I missing?
asked Oct 10 in Solr Config Files by anonymous

1 Answer

0 like 0 dislike
Perhaps you're missing some settings.
The Solr wiki should help:
https://lucene.apache.org/solr/guide/6_6/suggester.html

Hope it helps...
answered Oct 11 by admin (3,620 points)
...