Add addDoc(Document doc, boolean checkHash).