List of usage examples for org.apache.lucene.analysis.miscellaneous KeywordMarkerFilterFactory KeywordMarkerFilterFactory
public KeywordMarkerFilterFactory(Map<String, String> args)
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); }