@Override public void UpdateEntry(JournalEntry entry) { wrapper.ReplaceDocument( getDocument(entry), new Term(EntryIndexFields.ID.name(), entry.getUid().toString())); }
@Override public void DeleteEntry(JournalEntry entry) { wrapper.DeleteDocuments(new Term(EntryIndexFields.ID.name(), entry.getUid().toString())); }
@Override public void AddEntry(JournalEntry entry) { wrapper.AddDocument(getDocument(entry)); }