If you use "spellcheck.q", you also still need to specify "q" for the queryhandler, otherwise you'll get an NPE. Not sure that's your problem but its one thing to check.
James Dyer E-Commerce Systems Ingram Content Group (615) 213-4311 -----Original Message----- From: Valentin [mailto:igorlacro...@gmail.com] Sent: Thursday, August 18, 2011 10:32 AM To: solr-user@lucene.apache.org Subject: Full sentence spellcheck I'm trying to configure a spellchecker to autocomplete full sentences from my query. I've already been able to get this results: /"american israel" : -> "american something" -> "israel something"/ But i want : /"american israel" : -> "american israel something"/ This is my solrconfig.xml : /<searchComponent name="suggest_full" class="solr.SpellCheckComponent"> <str name="queryAnalyzerFieldType">suggestTextFull</str> <lst name="spellchecker"> <str name="name">suggest_full</str> <str name="classname">org.apache.solr.spelling.suggest.Suggester</str> <str name="lookupImpl">org.apache.solr.spelling.suggest.tst.TSTLookup</str> <str name="field">text_suggest_full</str> <str name="fieldType">suggestTextFull</str> </lst> </searchComponent> <requestHandler name="/suggest_full" class="org.apache.solr.handler.component.SearchHandler"> <lst name="defaults"> <str name="echoParams">explicit</str> <str name="spellcheck">true</str> <str name="spellcheck.dictionary">suggest_full</str> <str name="spellcheck.count">10</str> <str name="spellcheck.onlyMorePopular">true</str> </lst> <arr name="last-components"> <str>suggest_full</str> </arr> </requestHandler>/ And this is my schema.xml: /<fieldType name="suggestTextFull" class="solr.TextField"> <analyzer type="index"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> <filter class="solr.RemoveDuplicatesTokenFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType> ... <field name="text_suggest_full" type="suggestTextFull" indexed="true" stored="false" multiValued="true"/>/ I've read somewhere that I have to use spellcheck.q because q use the WhitespaceAnalyzer, but when I use spellcheck.q i get a java.lang.NullPointerException Any ideas ? -- View this message in context: http://lucene.472066.n3.nabble.com/Full-sentence-spellcheck-tp3265257p3265257.html Sent from the Solr - User mailing list archive at Nabble.com.