Example usage for org.apache.lucene.analysis.en PorterStemFilterFactory PorterStemFilterFactory

List of usage examples for org.apache.lucene.analysis.en PorterStemFilterFactory PorterStemFilterFactory

Introduction

In this page you can find the example usage for org.apache.lucene.analysis.en PorterStemFilterFactory PorterStemFilterFactory.

Prototype

public PorterStemFilterFactory(Map<String, String> args) 

Source Link

Document

Creates a new PorterStemFilterFactory

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 ww . j  a  va 2  s . c o 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);
}