DirectSolrSpellChecker defaults with a minimum term length of 4.  So you'd need 
to bring this down with <int name="minQueryLength">1</int>.  

But you might not like the results from this.  See: 
http://lucene.apache.org/core/4_6_0/suggest/org/apache/lucene/search/spell/DirectSpellChecker.html#setMinQueryLength%28int%29

James Dyer
Ingram Content Group
(615) 213-4311


-----Original Message-----
From: Corey Gerhardt [mailto:corey.gerha...@directwest.com] 
Sent: Thursday, August 14, 2014 12:18 PM
To: Solr User List
Subject: Spell check collation

Solr 4.6

Current settings for my handler:
<str name="defType">edismax</str>
<str name="spellcheck.maxResultsForSuggest">5</str>
<str name="spellcheck.maxCollations">3</str>
<str name="spellcheck.maxCollationTries">30</str>
<str name="qf">BUS_BUSINESS_NAME_PHRASE</str>
<str name="spellcheck.count">10</str>
<str name="spellcheck.alternativeTermCount">10</str>
<str name="spellcheck.collate">true</str>
<str name="spellcheck.onlyMorePopular">false</str>
<str name="spellcheck.accuracy">0.2</str>

<lst name="spellchecker">
      <str 
name="classname">org.apache.solr.spelling.DirectSolrSpellChecker</str>
      <str name="name">default</str>
      <str name="field">spell</str>
      <str name="distanceMeasure">internal</str>
      <float name="accuracy">0.5</float>
      <int name="maxEdits">2</int>
      <int name="minPrefix">1</int>
      <int name="maxInspections">5</int>
      <float name="thresholdTokenFrequency">0.000001</float>
      <float name="maxQueryFrequency">0.0001</float>
      <str name="buildOnCommit">true</str>
    </lst>
  </searchComponent>

I'm querying:
h G's collision centre

hoping for a spell check suggestion of:
J G's collision centre

But there are no suggestions. Is there is term length limitation to 
spellchecking?

Thanks,

Corey

Reply via email to