changed flag name: show_documents -> show_doc_id