oleg_gnatovskiy 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.
>
That works, thanks.
--
View this message in context:
http://www.nabble.com/File-based-index-doesn%27t-work-in-spellcheck-component-tp19576916p19577276.html
Sent from the Solr - User mailing list archive at Nabble.com.