You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by GitBox <gi...@apache.org> on 2019/12/20 17:30:05 UTC

[GitHub] [lucene-solr] andywebb1975 commented on a change in pull request #1103: LUCENE-9102 add maxQueryLength option to DirectSpellChecker

andywebb1975 commented on a change in pull request #1103: LUCENE-9102 add maxQueryLength option to DirectSpellChecker
URL: https://github.com/apache/lucene-solr/pull/1103#discussion_r360480535
 
 

 ##########
 File path: lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
 ##########
 @@ -75,6 +75,8 @@
   private float thresholdFrequency = 0f;
   /** minimum length of a query word to return suggestions */
   private int minQueryLength = 4;
+  /** maximum length of a query word to return suggestions */
+  private int maxQueryLength = 0;
 
 Review comment:
   Thanks for the comments - I've put in validation and switched to using Integer.MAX_VALUE.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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