I'm sure this is due to some sort of google_cse API update, but just noticed that the filter no longer filters results to specified sites. Tried playing around by entering sites in google_cse through google and then replicating theses sites in SiteSearch domain form field of the module settings in exact same order. No luck. The results are not restricted to selected site. I will work on this and if i come up with solution i will post it. I have skimmed through issue queue, but have not seen anyone with same issue. Please do reply with a link if this is a duplicate post - i'd love to have this functionality back without stress :)

the function i am referring to: function google_cse_sitesearch_form

CommentFileSizeAuthor
#5 1345218.patch2.83 KBdavidhernandez

Comments

davidhernandez’s picture

I'm also having this problem.

pixelcab’s picture

Having the same issue here. Anyone know if Google has changed search parameters for site search recently?

Sarah Thornton’s picture

Update, it looks like the codes for the domain are off. I replaced the cx value in the URL from the Google CSE test page with the version in Drupal and it works fine for the sub domain.

davidhernandez’s picture

I just found that the URL parameter name changed from "sitesearch" to "as_sitesearch". Going over the the code to see where this needs to be changed.

davidhernandez’s picture

StatusFileSize
new2.83 KB

There are a couple places where the parameter needed to be changed. Try this patch. (off 6.x-1.x). Cache will likely need to be cleared.

pixelcab’s picture

The patch worked great! Test searches so far are filtering out between domains. Thanks again

davidhernandez’s picture

Status: Active » Needs review

Thanks, chapsy. If a few other people can also check that the patch works, that would great.

heatherwoz’s picture

I made a similar patch for 7.x: #1479198: Update sitesearch URL parameter name

malcomio’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Tidying up the issue queue, and marking issues as won't fix where the version is no longer supported.