this may need something like language models to suggest.
 I found an issue https://issues.apache.org/jira/browse/SOLR-2585
 what's going on with it?

On Thu, Aug 18, 2011 at 11:31 PM, Valentin <igorlacro...@gmail.com> wrote:
> 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.
>

Reply via email to