When a query has multiple datasets, the query results are formatted using the XMD of the first loaded dataset. If the query is faceted, it receives filters for all of its datasets, but broadcasts selections only from its first loaded dataset.
For more information about formatting results using the XMD, see the Extended Metadata (XMD) Developer Guide.