diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java index a01f12a4510..50caefabb3e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/ElisionTokenFilterFactory.java @@ -39,14 +39,14 @@ public class ElisionTokenFilterFactory extends AbstractTokenFilterFactory { @Inject public ElisionTokenFilterFactory(Index index, @IndexSettings Settings indexSettings, Environment env, @Assisted String name, @Assisted Settings settings) { super(index, indexSettings, name, settings); - this.articles = Analysis.parseArticles(env, settings); + this.articles = Analysis.parseArticles(env, settings); } @Override public TokenStream create(TokenStream tokenStream) { - if (articles == null) { - return new ElisionFilter(version, tokenStream); - } else { - return new ElisionFilter(version, tokenStream, articles); - } + if (articles == null) { + return new ElisionFilter(version, tokenStream); + } else { + return new ElisionFilter(version, tokenStream, articles); + } } } \ No newline at end of file