diff --git a/src/java/org/apache/solr/analysis/SynonymFilter.java b/src/java/org/apache/solr/analysis/SynonymFilter.java index 124b3ac6423..a8be4496e8b 100644 --- a/src/java/org/apache/solr/analysis/SynonymFilter.java +++ b/src/java/org/apache/solr/analysis/SynonymFilter.java @@ -224,7 +224,7 @@ public class SynonymFilter extends TokenFilter { // recurse result = match(subMap); } -; + if (result != null) { matched.addFirst(tok); } else {