What's your "textSpell FieldType look like?
Spelling is definitely something that needs tuning, so you might have
to play with some of the knobs like accuracy, etc.
As for JaroWinkler, and I suppose the default, your field is "spell",
but based on your configuration, I gather you really want it to be
"RezeptNameSpellCheck". I am guessing that if you point Luke at your
those two spell checking indexes, you're going to find that they are
empty.
HTH,
Grant
On Feb 11, 2009, at 5:47 AM, Kraus, Ralf | pixelhouse GmbH wrote:
Hi,
My SOLRCONFIG.XML
<requestHandler name="/spellCheckCK" class="solr.SearchHandler">
<lst name="defaults">
</lst>
<arr name="last-components">
<str>spellcheck</str>
</arr>
</requestHandler>
<searchComponent name="spellcheck" class="solr.SpellCheckComponent">
<str name="queryAnalyzerFieldType">textSpell</str>
<lst name="spellchecker">
<str name="name">default</str>
<str name="field">spell</str>
<str name="spellcheckIndexDir">./spellchecker1</str>
<str name="buildOnOptimize">true</str>
</lst>
<lst name="spellchecker">
<str name="name">jarowinkler</str>
<str name="field">spell</str>
<!-- Use a different Distance Measure -->
<str
name
=
"distanceMeasure
">org.apache.lucene.search.spell.JaroWinklerDistance</str>
<str name="spellcheckIndexDir">./spellchecker2</str>
<str name="buildOnOptimize">true</str>
</lst>
<lst name="spellchecker">
<str name="classname">solr.FileBasedSpellChecker</str>
<str name="name">file</str>
<str name="sourceLocation">dictionary.txt</str>
<str name="characterEncoding">UTF-8</str>
<str name="spellcheckIndexDir">./spellcheckerFile</str>
<str name="buildOnOptimize">true</str>
</lst>
</searchComponent>
My Schema.xml
<field name="RezeptNameSpellCheck" type="textSpell" indexed="true"
stored="true" multiValued="true"/>
<copyField source="RezeptName" dest="RezeptNameSpellCheck" />
Search:
spellcheck=true
&wt=phps
&rows=30
&start=0
&sort=score+desc
&spellcheck.build=true
&spellcheck.extendedResults=false
&spellcheck.count=1
&q=sudeln
&spellcheck.onlyMorePopular=true
&spellcheck.dictionary=file
Now my Problems :-)
If I use the "file" choice with "spellcheck.dictionary=file" I got
very bad suggestions :-( If I use "default" or "Jarowinkler" I dont
get any suggestions at all :-(
Whats the problem ?
Greets,
Ralf
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search