danmuzi commented on a change in pull request #1296: LUCENE-9253: Support custom dictionaries in KoreanTokenizer URL: https://github.com/apache/lucene-solr/pull/1296#discussion_r386122724
########## File path: lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/BinaryDictionary.java ########## @@ -150,7 +150,18 @@ protected final InputStream getResource(String suffix) throws IOException { throw new IllegalStateException("unknown resource scheme " + resourceScheme); } } - + + public static InputStream getResource(ResourceScheme scheme, String path) throws IOException { Review comment: It's the same as Kuromoji's pattern. But there is no relation with Kuromoji. It's already written as an enum in this class. https://github.com/apache/lucene-solr/blob/d5e44e95175dbf027915e162925057bbcc14200b/lucene/analysis/nori/src/java/org/apache/lucene/analysis/ko/dict/BinaryDictionary.java#L45-L47 ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org