lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "O. Olson" <>
Subject Trying to get AnalyzingInfixSuggester to work in Solr?
Date Wed, 06 May 2015 16:39:42 GMT
I'm trying to get the AnalyzingInfixSuggester to work but I'm not successful.
I'd be grateful if someone can point me to a working example. 

My content is product descriptions similar to a BestBuy or NewEgg catalog.
My problem is that I'm getting only single words in the suggester results.
E.g. if I type 'len', I get the suggester results like 'Lenovo' but not
'Lenovo laptop' or something larger/longer than a single word. 

There is a suggestion here:
that the search at: is powered by the
AnalyzingInfixSuggester  If this is true, when I use this suggester, I get
more than a few words in the suggester results, but I don't with my setup
i.e. on my setup I get only single words. My configuration is 

    <searchComponent class="solr.SpellCheckComponent" name="suggest">
    <lst name="spellchecker">
      <str name="name">suggest</str>
      <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
      <str name="field">text</str>  
      <float name="threshold">0.005</float>
      <str name="buildOnCommit">true</str>
	  <str name="suggestAnalyzerFieldType">text_general</str>
	  <bool name="exactMatchFirst">true</bool>
  <requestHandler class="org.apache.solr.handler.component.SearchHandler"
    <lst name="defaults">
      <str name="spellcheck">true</str>
      <str name="spellcheck.dictionary">suggest</str>
      <str name="spellcheck.onlyMorePopular">true</str>
      <str name="spellcheck.count">5</str>
      <str name="spellcheck.collate">true</str>
    <arr name="components">

I copy the contents of all of my fields to a single field called 'text'. The
' text_general' type is exactly as in the solr examples:

I'd be grateful if anyone can help me. I don't know what to look at. Thank
you in adance.

O. O.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message