Basic plumbing for document collections