From 04c2a2a543f781f7aed24e00c4da14a24c5abec9 Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 31 Jan 2011 11:52:02 +0200 Subject: [PATCH] move ngram to the default processor --- .../org/elasticsearch/index/analysis/AnalysisModule.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisModule.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisModule.java index 50811b9c3b0..bb3549e039b 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisModule.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/analysis/AnalysisModule.java @@ -322,6 +322,11 @@ public class AnalysisModule extends AbstractModule { tokenizersBindings.processTokenizer("whitespace", WhitespaceTokenizerFactory.class); tokenizersBindings.processTokenizer("russian_letter", RussianLetterTokenizerFactory.class); tokenizersBindings.processTokenizer("russianLetter", RussianLetterTokenizerFactory.class); + + tokenizersBindings.processTokenizer("nGram", NGramTokenizerFactory.class); + tokenizersBindings.processTokenizer("ngram", NGramTokenizerFactory.class); + tokenizersBindings.processTokenizer("edgeNGram", EdgeNGramTokenizerFactory.class); + tokenizersBindings.processTokenizer("edge_ngram", EdgeNGramTokenizerFactory.class); } @Override public void processAnalyzers(AnalyzersBindings analyzersBindings) { @@ -356,10 +361,6 @@ public class AnalysisModule extends AbstractModule { } @Override public void processTokenizers(TokenizersBindings tokenizersBindings) { - tokenizersBindings.processTokenizer("nGram", NGramTokenizerFactory.class); - tokenizersBindings.processTokenizer("ngram", NGramTokenizerFactory.class); - tokenizersBindings.processTokenizer("edgeNGram", EdgeNGramTokenizerFactory.class); - tokenizersBindings.processTokenizer("edge_ngram", EdgeNGramTokenizerFactory.class); } @Override public void processAnalyzers(AnalyzersBindings analyzersBindings) {