I haven't looked at the Spellchecker in a while, but it sounds like you are 
deleting the index files manually.  Any reason for that?  Shouldn't that 
rebuild command run smoothly even with a pre-existing index there (funny that I 
ask this, considering this was my doing).

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
From: Doug Steigerwald <[EMAIL PROTECTED]>
To: solr-user@lucene.apache.org
Sent: Monday, January 14, 2008 8:31:06 AM
Subject: Spellchecker index rebuild error

Lately I've been having issues with the spellchecker failing to
 properly rebuild my spell index.  I 
used to be able to delete the spell directory and reload the core and
 build the index fine if it 
ever crapped out, but now I can't even build it.

java.io.FileNotFoundException: /home/dsteiger/solr/data/spell/_8c.cfs
 (No such file or directory)
    at java.io.RandomAccessFile.open(Native Method)
    at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
    at
 
org.apache.lucene.store.FSDirectory$FSIndexInput$Descriptor.<init>(FSDirectory.java:506)
    at
 org.apache.lucene.store.FSDirectory$FSIndexInput.<init>(FSDirectory.java:536)
    at
 org.apache.lucene.store.FSDirectory.openInput(FSDirectory.java:445)
    at
 org.apache.lucene.index.CompoundFileReader.<init>(CompoundFileReader.java:70)
    at
 org.apache.lucene.index.SegmentReader.initialize(SegmentReader.java:181)
    at
 org.apache.lucene.index.SegmentReader.get(SegmentReader.java:167)
.......

Here's the query:
 /solr/dsteiger/select/?q=test&qt=spellchecker&cmd=rebuild

Here's my config snippet:

     <requestHandler name="spellchecker"
 class="solr.SpellCheckerRequestHandler" startup="lazy">
         <lst name="defaults">
             <int name="suggestionCount">1</int>
             <float name="accuracy">0.5</float>
         </lst>
         <str name="spellcheckerIndexDir">spell</str>
         <str name="termSourceField">spell</str>
     </requestHandler>

Anyone have any ideas?

Doug



Reply via email to