"When I use the Admin UI (v5.3.0), and check the spellcheck.build box" Out of interest, where is this option within the Admin UI? I can't find anything like it in mine...
Do you get the same issue by submitting the build command directly with something like this instead: http://localhost:8983/solr/<core>/ELspell?spellcheck.build=true ? It'll be reasonably obvious if the dictionary has actually built or not by the file size of your speller store: /localapps/dev/EventLog/solr/EventLog2/data/spFile Otherwise, (temporarily) try adding... <str name="buildOnStartup">true</str> ...to your spellchecker search component config, you might find it'll log a more useful error message that way. Geraint Geraint Duck Data Scientist Toxicology and Health Sciences Syngenta UK Email: geraint.d...@syngenta.com -----Original Message----- From: Mark Fenbers [mailto:mark.fenb...@noaa.gov] Sent: 10 October 2015 20:03 To: solr User Group Subject: NullPointerException Greetings! I'm new to Solr Spellchecking... I have yet to get it to work. Attached is a snippet from my solrconfig.xml pertaining to my spellcheck efforts. When I use the Admin UI (v5.3.0), and check the spellcheck.build box, I get a NullPointerException stacktrace. The actual stacktrace is at the bottom of the attachment. My spellcheck.q is the following: Solr will yuse suggestions frum both. The FileBasedSpellChecker.build method is clearly the problem (determined from the stack trace), but I cannot figure out why. Maybe I don't need to do a build on it...(?) If I don't, the spell-checker finds no mispelled words. yet, "yuse" and "frum" are not stand-alone words in /usr/share/dict/words. /usr/share/dict/words exists and has global read permissions. I displayed the file and see no issues (i.e., one word per line) although some "words" are a string of digits, but that shouldn't matter. Does my snippet give any clues about why I would get this error? Is my stripped down configuration missing something, perhaps? Mark ________________________________ Syngenta Limited, Registered in England No 2710846;Registered Office : Syngenta Limited, European Regional Centre, Priestley Road, Surrey Research Park, Guildford, Surrey, GU2 7YH, United Kingdom ________________________________ This message may contain confidential information. If you are not the designated recipient, please notify the sender immediately, and delete the original and any copies. Any use of the message by you is prohibited.