fix index
This commit is contained in:
@@ -29,16 +29,12 @@ public class LuceneConfig implements LuceneAnalysisConfigurer {
|
||||
context.analyzer("english").custom().tokenizer(WhitespaceTokenizerFactory.class)
|
||||
.tokenFilter(LowerCaseFilterFactory.class)
|
||||
.tokenFilter(SnowballPorterFilterFactory.class).param("language", "English")
|
||||
.tokenFilter(ASCIIFoldingFilterFactory.class)
|
||||
.tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1")
|
||||
.param("maxGramSize", "10");
|
||||
.tokenFilter(ASCIIFoldingFilterFactory.class);
|
||||
|
||||
context.analyzer("german").custom().tokenizer(WhitespaceTokenizerFactory.class)
|
||||
.tokenFilter(LowerCaseFilterFactory.class)
|
||||
.tokenFilter(SnowballPorterFilterFactory.class).param("language", "German")
|
||||
.tokenFilter(ASCIIFoldingFilterFactory.class)
|
||||
.tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1")
|
||||
.param("maxGramSize", "10");
|
||||
.tokenFilter(ASCIIFoldingFilterFactory.class);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user