* @see junit.framework.TestCase#setUp()
*/
protected void setUp() throws Exception {
//Initialization of the index
this.directory = new RAMDirectory();
IndexWriter writer = new IndexWriter(directory, new SimpleAnalyzer(), true);
//Adding a document
Document document1 = new Document();
document1.add(new Field("id", "1", Field.Store.YES, Field.Index.UN_TOKENIZED));
document1.add(new Field("field", "a sample", Field.Store.YES, Field.Index.TOKENIZED));