donnerpeter commented on a change in pull request #2459:
URL: https://github.com/apache/lucene-solr/pull/2459#discussion_r588374683
##########
File path:
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/ModifyingSuggester.java
##########
@@ -234,6 +234,8 @@ private void tryLongSwap(String word) {
}
private void tryRemovingChar(String word) {
+ if (word.length() == 1) return;
Review comment:
We don't accept empty words for lookup anymore
##########
File path:
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/Stemmer.java
##########
@@ -94,6 +94,10 @@ public Stemmer(Dictionary dictionary) {
}
List<CharsRef> list = new ArrayList<>();
+ if (length == 0) {
Review comment:
We don't accept empty words for lookup anymore, again
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]