Permalink
Browse files

Synonym filter fails to properly load synonyms (since 0.17.7), closes #…

  • Loading branch information...
1 parent 19ff93b commit ffc74260ac96678adf4704f1e9f743307d41093b @kimchy kimchy committed Oct 12, 2011
View
3 ...asticsearch/src/main/java/org/elasticsearch/index/analysis/SynonymTokenFilterFactory.java
@@ -86,6 +86,9 @@ protected TokenStreamComponents createComponents(String fieldName, Reader reader
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);

0 comments on commit ffc7426

Please sign in to comment.