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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1345218.patch | 2.83 KB | davidhernandez |
Comments
Comment #1
davidhernandezI'm also having this problem.
Comment #2
pixelcab commentedHaving the same issue here. Anyone know if Google has changed search parameters for site search recently?
Comment #3
Sarah Thornton commentedUpdate, 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.
Comment #4
davidhernandezI 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.
Comment #5
davidhernandezThere 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.
Comment #6
pixelcab commentedThe patch worked great! Test searches so far are filtering out between domains. Thanks again
Comment #7
davidhernandezThanks, chapsy. If a few other people can also check that the patch works, that would great.
Comment #8
heatherwoz commentedI made a similar patch for 7.x: #1479198: Update sitesearch URL parameter name
Comment #9
malcomio commentedTidying up the issue queue, and marking issues as won't fix where the version is no longer supported.