Example usage for org.apache.lucene.analysis.miscellaneous KeywordRepeatFilterFactory KeywordRepeatFilterFactory

List of usage examples for org.apache.lucene.analysis.miscellaneous KeywordRepeatFilterFactory KeywordRepeatFilterFactory

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.miscellaneous KeywordRepeatFilterFactory KeywordRepeatFilterFactory.

Prototype

public KeywordRepeatFilterFactory(Map<String, String> args) 

Source Link

Document

Creates a new KeywordRepeatFilterFactory

Usage

From source file:org.apache.solr.analysis.ko.TestKoreanTokenizerFactory.java

License:Apache License

@Override
public void setUp() throws Exception {
    super.setUp();
    // initCore();
    Map<String, String> args = new HashMap<>();
    Map<String, String> kfArgs = new HashMap<>();
    {//from   w w w .  j ava 2  s .  co  m
        kfArgs.put("hasOrigin", "true");
        kfArgs.put("hasCNoun", "true");
        kfArgs.put("bigrammable", "false");
        kfArgs.put("queryMode", "false");
    }

    kt = new KoreanTokenizerFactory(args);
    lc = new LowerCaseFilterFactory(args);
    kf = new KoreanFilterFactory(kfArgs);
    hmf = new HanjaMappingFilterFactory(args);
    kmf = new KeywordMarkerFilterFactory(args);
    pdf = new PunctuationDelimitFilterFactory(args);
    krf = new KeywordRepeatFilterFactory(args);
    epf = new EnglishPossessiveFilterFactory(args);
    psf = new PorterStemFilterFactory(args);
    rdt = new RemoveDuplicatesTokenFilterFactory(args);
}