@Override
protected void setUp() throws Exception {
directory = new RAMDirectory();
analyzer = new WhitespaceAnalyzer(Version.LUCENE_43);
selectionProperties = new HashMap<String, String>();
IndexWriterConfig conf = new IndexWriterConfig(Version.LUCENE_43, analyzer);
conf.setOpenMode(OpenMode.CREATE);
IndexWriter writer = new IndexWriter(directory, conf);
writer.addDocument(doc("prop1=val1", "prop2=val1", "prop5=val1"));
writer.addDocument(doc("prop1=val2", "prop3=val1", "prop7=val7"));
writer.addDocument(doc("prop1=val2", "prop3=val2", "prop3=val3"));