move ngram to the default processor

This commit is contained in:
kimchy 2011-01-31 11:52:02 +02:00
parent e85f9c276f
commit 04c2a2a543
1 changed files with 5 additions and 4 deletions

View File

@ -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) {