donnerpeter commented on a change in pull request #2457:
URL: https://github.com/apache/lucene-solr/pull/2457#discussion_r588100307
##########
File path:
lucene/analysis/common/src/java/org/apache/lucene/analysis/hunspell/GeneratingSuggester.java
##########
@@ -67,14 +66,15 @@
PriorityQueue<Weighted<Root<String>>> roots = new
PriorityQueue<>(natural.reversed());
List<Root<String>> entries = new ArrayList<>();
boolean ignoreTitleCaseRoots = originalCase == WordCase.LOWER &&
!dictionary.hasLanguage("de");
- EnumSet<NGramOptions> options = EnumSet.of(NGramOptions.LONGER_WORSE);
+ TrigramAutomaton automaton = new TrigramAutomaton(word);
Review comment:
`ngram` call has been replaced with the automaton and special logic for
former `LONGER_WORSE` functionality (see below)
----------------------------------------------------------------
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]