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)
|
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");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user