lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Dyer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-3436) Spellchecker "Suggest Mode" Support
Date Wed, 14 Sep 2011 20:12:09 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-3436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Dyer updated LUCENE-3436:
-------------------------------

    Attachment: LUCENE-3436.patch

- Creates a new Enum, "SuggestMode".  
- SpellChecker methods that used to take a boolean "morePopular" have been converted to use
the new Enum.
- Old SpellChecker methods have been marked as @Deprecated with comments (can be removed entirely
for Trunk.  Included here for possible 3.x inclusion)
- A new Unit Test method for 0.a.l.s.s.SpellChecker tests "SUGGEST_MORE_POPULAR" and "SUGGEST_ALWAYS"
(prior, "morePopular" had no test coverage).
- A new Unit Test scenario added to TestDirectSpellChecker for testing "SUGGEST_ALWAYS".

> Spellchecker "Suggest Mode" Support
> -----------------------------------
>
>                 Key: LUCENE-3436
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3436
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: modules/spellchecker
>    Affects Versions: 3.3, 4.0
>            Reporter: James Dyer
>            Priority: Minor
>             Fix For: 3.5, 4.0
>
>         Attachments: LUCENE-3436.patch
>
>
> This is a spin-off from SOLR-2585.
> Currently o.a.l.s.s.SpellChecker and o.a.l.s.s.DirectSpellChecker support two "Suggest
Modes":
> 1. Suggest for terms that are not in the index.
> 2. Suggest "more popular" terms.
> This issue is to add a third Suggest Mode:
> 3. Suggest always.
> This will assist users in developing context-sensitive spell suggestions and/or did-you-mean
suggestions.  See SOLR-2585 for a full discussion.
> Note that o.a.l.s.s.SpellChecker already can support this functionality, if the user
passes in a NULL term & IndexReader.  This, however, is not intutive.  o.a.l.s.s.DirectSpellChecker
currently has no support for this third Suggest Mode.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message