Add get_doc()

In order to use docid