change the addition of analysis processors to override the default ones

This commit is contained in:
kimchy 2010-05-19 01:40:34 +03:00
parent b5140085a5
commit 7639f9b784
1 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ import org.elasticsearch.util.inject.assistedinject.FactoryProvider;
import org.elasticsearch.util.inject.multibindings.MapBinder;
import org.elasticsearch.util.settings.Settings;
import java.util.List;
import java.util.LinkedList;
import java.util.Map;
/**
@ -44,7 +44,7 @@ public class AnalysisModule extends AbstractModule {
private final Settings settings;
private final List<AnalysisBinderProcessor> processors = Lists.newArrayList();
private final LinkedList<AnalysisBinderProcessor> processors = Lists.newLinkedList();
public AnalysisModule(Settings settings) {
this.settings = settings;
@ -57,7 +57,7 @@ public class AnalysisModule extends AbstractModule {
}
public AnalysisModule addProcessor(AnalysisBinderProcessor processor) {
processors.add(processor);
processors.addFirst(processor);
return this;
}