You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2018/02/01 00:37:12 UTC

[jira] [Created] (LUCENE-8147) DirectSpellChecker needs better parameter checks

Robert Muir created LUCENE-8147:
-----------------------------------

             Summary: DirectSpellChecker needs better parameter checks
                 Key: LUCENE-8147
                 URL: https://issues.apache.org/jira/browse/LUCENE-8147
             Project: Lucene - Core
          Issue Type: Bug
          Components: modules/suggest
            Reporter: Robert Muir


This thing has a lot of parameters (and option setters too), but looks like it really needs better checks. For example if i ask for zero suggestions I think it may give a confusing NPE instead: SOLR-11858

There are probably other cases too: we should add all the missing checks and give IllegalArgumentExceptions and so on instead.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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