fix index

This commit is contained in:
_Bastler 2021-12-04 11:03:52 +01:00
parent 2f8a028908
commit 508dfbe184

View File

@ -29,16 +29,12 @@ public class LuceneConfig implements LuceneAnalysisConfigurer {
context.analyzer("english").custom().tokenizer(WhitespaceTokenizerFactory.class) context.analyzer("english").custom().tokenizer(WhitespaceTokenizerFactory.class)
.tokenFilter(LowerCaseFilterFactory.class) .tokenFilter(LowerCaseFilterFactory.class)
.tokenFilter(SnowballPorterFilterFactory.class).param("language", "English") .tokenFilter(SnowballPorterFilterFactory.class).param("language", "English")
.tokenFilter(ASCIIFoldingFilterFactory.class) .tokenFilter(ASCIIFoldingFilterFactory.class);
.tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1")
.param("maxGramSize", "10");
context.analyzer("german").custom().tokenizer(WhitespaceTokenizerFactory.class) context.analyzer("german").custom().tokenizer(WhitespaceTokenizerFactory.class)
.tokenFilter(LowerCaseFilterFactory.class) .tokenFilter(LowerCaseFilterFactory.class)
.tokenFilter(SnowballPorterFilterFactory.class).param("language", "German") .tokenFilter(SnowballPorterFilterFactory.class).param("language", "German")
.tokenFilter(ASCIIFoldingFilterFactory.class) .tokenFilter(ASCIIFoldingFilterFactory.class);
.tokenFilter(EdgeNGramFilterFactory.class).param("minGramSize", "1")
.param("maxGramSize", "10");
} }