diff --git a/src/java/org/apache/solr/analysis/DoubleMetaphoneFilter.java b/src/java/org/apache/solr/analysis/DoubleMetaphoneFilter.java index 43e8946616b..b04c48d3757 100644 --- a/src/java/org/apache/solr/analysis/DoubleMetaphoneFilter.java +++ b/src/java/org/apache/solr/analysis/DoubleMetaphoneFilter.java @@ -45,7 +45,7 @@ public class DoubleMetaphoneFilter extends TokenFilter { } Token t = input.next(in); - if (t != null) { + if (t != null && t.termLength() > 0) { if (inject) { remainingTokens.addLast(t); }