NXP-15685: handle documents extending Domain as Domains for the user dashboard; if no Domain available, do the search on the whole repository