in src/java/org/elasticsearch/analysis/hunspell/pt_BR/BrazilianHunspellAnalyzer.java [74:84]
static {
try {
DEFAULT_SET = WordlistLoader.getSnowballWordSet(
IOUtils.getDecodingReader(SnowballFilter.class, PortugueseAnalyzer.DEFAULT_STOPWORD_FILE, StandardCharsets.UTF_8),
new CharArraySet(16, true));
} catch (IOException ex) {
// default set should always be present as it is part of the
// distribution (JAR)
throw new RuntimeException("Unable to load default stopword set");
}
}