First step in associating documents to nodes.