@Override protected Indexer loadIndexer(String pa, String pr) { BasicSinglePassIndexer _indexer; if (blocks) _indexer = new BlockSinglePassIndexer(pa, pr); else _indexer = new BasicSinglePassIndexer(pa, pr); return _indexer; }
@Test public void testBlockSPFields() throws Exception { ApplicationSetup.setProperty("FieldTags.process", "TITLE,ELSE"); testIndexer(new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, "fields"), false, true); }
@Test public void testBlockSPNoFields() throws Exception { ApplicationSetup.setProperty("FieldTags.process", ""); testIndexer(new BlockSinglePassIndexer(ApplicationSetup.TERRIER_INDEX_PATH, ApplicationSetup.TERRIER_INDEX_PREFIX), false, false); } @Test