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

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

Introduction

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

Prototype

public KeywordMarkerFilterFactory(Map<String, String> args) 

Source Link

Document

Creates a new KeywordMarkerFilterFactory

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   ww w .  ja  va 2 s . c om*/
        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);
}