List of usage examples for org.apache.lucene.analysis.util FilesystemResourceLoader FilesystemResourceLoader
@Deprecated
public FilesystemResourceLoader(Path baseDirectory)
From source file:jp.co.atware.solr.analizers.cjk.CJKBigramFilterTest.java
License:Apache License
@BeforeClass public static void setUp() throws Exception { Map<String, String> map = new HashMap<String, String>(); map.put("mapping", "mapping.txt"); charFilterFactory = new MappingCharFilterFactory(map); charFilterFactory.inform(new FilesystemResourceLoader(new File("src/test/resources/cjkbigramfilter"))); tokenizerFactory = new CJKTokenizerFactory(new HashMap<String, String>()); map = new HashMap<String, String>(); map.put("outputUnigrams", "true"); tokenFilterFactory = new CJKBigramFilterFactory(map); }