job.run();
}
@Test
public void testQueryParser(){
SynonymQueryParser sqp = new SynonymQueryParser(config2, LuceneVersion.getVersion(), new String[]{"content","name"}, new StandardAnalyzer(LuceneVersion.getVersion()), null);
Query query = null;
try {
query = sqp.parse("content:d1 name:d1");
} catch (ParseException e) {
e.printStackTrace();
}
Assert.assertEquals("content:d1 name:d1 content:s1 name:s1",""+query);
}