create an ids query if queryInfo.ids is set with a list of document ids