[ 
http://issues.apache.org/jira/browse/SOLR-81?page=comments#action_12460331 ] 
            
Otis Gospodnetic commented on SOLR-81:
--------------------------------------

Ogün - yes, that Spellchecker class in Lucene's contrib/spellchecker has 1.0f 
defined as the boost for the last n-gram.  I'm not even sure if that's needed.  
I talked to Bob Carpenter (alias-i.com) about it recently, and he said boosting 
the end ngram doesn't make sense, if I remember correctly.  I'm inclined to go 
remove that from the source completely.  Thoughts?

I'm unsure about how to integrate the Lucene spellchecker code into Solr, 
though.  There is no "n-gram tokenizer" per se in the spellchecker extension, 
so I can't really point NGramFilter config in Solr's schema.xml to anything in 
that spellchecker library.... I can write my own n-gram Filter, that's not a 
problem, but you said you made use of the Lucene spellchecker code, and I can't 
see how to do that.

Did you simply create your own NGramFilter that creates the same ngrams as 
Spellchecker.java, and then used the Spellchecker.suggest(String word) method 
*only* for fetching/getting alternative spelling suggestions?


> Add Query Spellchecker functionality
> ------------------------------------
>
>                 Key: SOLR-81
>                 URL: http://issues.apache.org/jira/browse/SOLR-81
>             Project: Solr
>          Issue Type: New Feature
>          Components: search
>            Reporter: Otis Gospodnetic
>            Priority: Minor
>
> Use the simple approach of n-gramming outside of Solr and indexing n-gram 
> documents.  For example:
> <doc>
> <field name="word">lettuce</field>
> <field name="start3">let</field>
> <field name="gram3">let ett ttu tuc uce</field>
> <field name="end3">uce</field>
> <field name="start4">lett</field>
> <field name="gram4">lett ettu ttuc tuce</field>
> <field name="end4">tuce</field>
> </doc>
> See:
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg01254.html
> Java clients: SOLR-20 (add delete commit optimize), SOLR-30 (search)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to