fix index
This commit is contained in:
parent
2f8a028908
commit
508dfbe184
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user