integrate domain and resource in search