Some changes in getDocuments by Tieyan