bookmarkPager = new BookmarkPager(getGnizrDao());
DaoResult<Bookmark> result = bookmarkPager.pageAllBookmark(new User(2));
List<Bookmark> bmarks = result.getResult();
for(Bookmark bm : bmarks){
Document doc = DocumentCreator.createDocument(bm);
manager.addIndex(doc);
}
result = bookmarkPager.pageAllBookmark(new User(3));
bmarks = result.getResult();
for(Bookmark bm : bmarks){
Document doc = DocumentCreator.createDocument(bm);
manager.addIndex(doc);
}
Thread.sleep(10000);