Hi Oleg, You need to specify spellCheckIndexDir to use a FSDirectory. Also, remove the buildOnCommit because it is useless for file based spell checker.
<str name="spellcheckIndexDir">./spellchecker</str> On Fri, Sep 19, 2008 at 11:23 PM, oleg_gnatovskiy < [EMAIL PROTECTED]> wrote: > > Hello, > > I tried to have the spellcheck component to write to a drive index. My > config is a s follows: > > <lst name="spellchecker"> > <str > name="classname">org.apache.solr.spelling.FileBasedSpellChecker</str> > <str name="name">external</str> > <str name="sourceLocation">spellings.txt</str> > <str name="characterEncoding">UTF-8</str> > <str name="buildOnCommit">true</str> > <!--<str name="fieldType">text_ws</str>--> > <str name="indexDir">./spellIndex</str> > <str name > ="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str> > </lst> > > However the spell checker seems to still sue RAMDirectory. No spellIndex > directory is created, and the index is lost every time the server is > restarted. > -- > View this message in context: > http://www.nabble.com/File-based-index-doesn%27t-work-in-spellcheck-component-tp19576916p19576916.html > Sent from the Solr - User mailing list archive at Nabble.com. > > -- Regards, Shalin Shekhar Mangar.