Get doc lines from docstore when performing batch operations