merge 2 docs on query results