Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit ffc74260ac96678adf4704f1e9f743307d41093b 1 parent 19ff93b
Shay Banon kimchy authored
3  modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/
@@ -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 =;
} catch (IOException e) {
throw new ElasticSearchIllegalArgumentException("failed to build synonyms", e);
Please sign in to comment.
Something went wrong with that request. Please try again.