getReferences fetches document ids for an article