Currently if the search is used for subsites there is
an options to restrict the search to certain content area.
However, result links are still including the main
domain instead of subsite domain. E.g. if the main
Aplaws domain is mydomain1.com and the subsite is
accessed as mydomain2.com the links for the subsite
search results are still for mydomain1.com.
Maybe this could be fixed by introducing another hidden
parameter in the search form called "domainOverwrite".
Then if this is set the value of domainOverwrite would
replace the primary domain. Or other option would be to
read the domain name from the URL and replace based on
that.