Synonym filter fails to properly load synonyms (since 0.17.7), closes #1392.
This commit is contained in:
parent
19ff93b09a
commit
ffc74260ac
|
@ -86,6 +86,9 @@ public class SynonymTokenFilterFactory extends AbstractTokenFilterFactory {
|
|||
|
||||
CustomSynonymParser parser = new CustomSynonymParser(true, expand, analyzer);
|
||||
try {
|
||||
for (String rule : rules) {
|
||||
parser.addLine(rule);
|
||||
}
|
||||
synonymMap = parser.build();
|
||||
} catch (IOException e) {
|
||||
throw new ElasticSearchIllegalArgumentException("failed to build synonyms", e);
|
||||
|
|
Loading…
Reference in New Issue