get document by topic id