Given a key to a document, which node is the document on

I have only seen the cbc hash command line tool do this. I’d like to use it to add to our internal metrics to detect failures