We have a search engine which searches four different domains, but we want to be able to limit searches to a specific domain on some sites. This patch adds a configuration setting to allow the search to be limited to a specific domain.

For example, if your search engine supports example.com, example.org and example.net, entering "example.com" for this setting will cause only results from that domain to be returned.

CommentFileSizeAuthor
google_cse_adv.domain.patch1010 bytesRob Knight

Comments

meba’s picture

Status: Needs review » Needs work

The patch is easy but I am not sure if it belongs here. If we do this, I believe we should somehow support Domain Access module. What do you think about that?

In the meantime, if you really need this, you can implement it using a hook_google_cse_adv_execute()