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 2021/02/12 16:37:01 UTC
[GitHub] [lucene-solr] donnerpeter commented on a change in pull request #2363: LUCENE-9766: Hunspell: add API for retrieving dictionary morphologica…
donnerpeter commented on a change in pull request #2363:
URL: https://github.com/apache/lucene-solr/pull/2363#discussion_r575352045
##########
File path: lucene/analysis/common/src/test/org/apache/lucene/analysis/hunspell/StemmerTestBase.java
##########
@@ -43,6 +43,11 @@ static void init(String affix, String dictionary) throws IOException, ParseExcep
static void init(boolean ignoreCase, String affix, String... dictionaries)
throws IOException, ParseException {
+ stemmer = new Stemmer(loadDictionary(ignoreCase, affix, dictionaries));
+ }
+
+ static Dictionary loadDictionary(boolean ignoreCase, String affix, String... dictionaries)
Review comment:
extract a method to call from a test
----------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org