Not sure, of course. Sure seems like a better error message is in order, is there anything above the message you pasted in the log file that sheds more light on the subject?
Erick On Fri, Dec 5, 2014 at 1:22 PM, Min L <minl07...@gmail.com> wrote: > Thanks for your reply. > > This is all it is in the solr log, no stack. It fails regardless of > buildOncommit=true or false by building it manually. The file fst.bin was > created. > > I found the source code in suggester.java where it logged the error. > Perhaps lookup.store(new FileOutputStream(target)) failed? Wonder why. > > if (storeDir != null) { > > File target = new File(storeDir, factory.storeFileName()); > > if(!lookup.store(new FileOutputStream(target))) { > > if (sourceLocation == null) { > > assert reader != null && field != null; > > * LOG.error("Store Lookup build from index on field: " + field + " > failed reader has: " + reader.maxDoc() + " docs");* > > } else { > > LOG.error("Store Lookup build from sourceloaction: " + > sourceLocation + " failed"); > > } > > } else { > > LOG.info("Stored suggest data to: " + target.getAbsolutePath()); > > } > > } > > On Fri, Dec 5, 2014 at 12:59 PM, Erick Erickson <erickerick...@gmail.com> > wrote: > >> What's the rest of the stack trace? There should >> be a root cause somewhere. >> >> Best, >> Erick >> >> On Fri, Dec 5, 2014 at 11:07 AM, Min L <minl07...@gmail.com> wrote: >> > Hi all: >> > >> > My code using solr spellchecker to suggest keywords worked fine locally, >> > however in qa solr env, it failed to build it with the following error in >> > solr log: >> > >> > ERROR Suggester Store Lookup build from index on field: myfieldname >> failed >> > reader has: xxx docs >> > >> > I checked the solr directory and the file fst.bin was created >> successfully >> > though. Does anyone know what caused the issue? >> > >> > command to build: >> > http://xxxx:8080/solr/mycore/suggestkeyword?spellcheck.build=true >> > >> > Thanks a lot! >>