doc.add(new Field("_id", "1", Field.Store.YES, Field.Index.NO));
AllEntries allEntries = new AllEntries();
allEntries.addText("field1", "something", 1.0f);
allEntries.addText("field2", "else", 1.0f);
allEntries.reset();
<BUG>doc.add(new Field("_all", AllTokenFilter.allTokenStream("_all", allEntries, Lucene.STANDARD_ANALYZER)));
</BUG>
indexWriter.addDocument(doc);
doc = new Document();
doc.add(new Field("_id", "2", Field.Store.YES, Field.Index.NO));

doc.add(new Field("_id", "1", Field.Store.YES, Field.Index.NO));
AllEntries allEntries = new AllEntries();
allEntries.addText("field1", "something", 1.0f);
allEntries.addText("field2", "else", 1.0f);
allEntries.reset();
doc.add(new Field("_all", AllTokenStream.allTokenStream("_all", allEntries, Lucene.STANDARD_ANALYZER)));
indexWriter.addDocument(doc);
doc = new Document();
doc.add(new Field("_id", "2", Field.Store.YES, Field.Index.NO));
