I just wanted to say thank you for updating this useful module to 6.x.

I had a question about the custom search engine integration. In the previous version for 5.x there was the option to put a custom search engine id into web search but I can't seem to find this option. Also I was wondering if there was anyway to have the search form load with the page like the last version to get rid of the loading delay.

Previous to this I was using a version I manually patched version 5.x for 6.x that was submitted. I would like to take advantage of the new features of the new version.

Thanks again for the great module!

Comments

mac_perlinski’s picture

Taking into account that setSiteRestriction is taking as parameter or URL or CSE ID we do support this feature and you can set your restriction not only to URL but to CSE result set.

Simply speaking go to your block configuration page :

http://www.example.com/admin/build/block/configure/googleajaxsearch/0

Expand Advanced options and than Web searcher options , you should see Restrict results to page: (here place your CSE ID)

API for setSiteRestriction from Google Ajax Search Page

setSiteRestriction

This method is used to restrict the set of web search results returned by this searcher. To restrict to www.amazon.com, simply call this method passing in a value of "www.amazon.com". To clear site restrictions, pass in a value of null. The following snippet demonstrates this setting of a set restriction to "amazon.com". A more complete sample is available at Site Restrictions Sample.

var siteSearch = new google.search.WebSearch();
siteSearch.setSiteRestriction("amazon.com");

This method also allows the caller to restrict searches to a Google Custom Search Engine. Instead of specifying a URL path to this method, pass in the Custom Search Engine ID. The following snippet demonstrates setting a site restriction to a custom search engine whose id is 000455696194071821846:reviews. A more complete sample is available at Custom Search Engine Sample.

var siteSearch = new google.search.WebSearch();
siteSearch.setSiteRestriction("000455696194071821846:reviews");

--
Regards,
Maciej Perlinski
Meant4.com Drupal Shop
maciej.perlinski@meant4.com

mac_perlinski’s picture

Status: Active » Closed (fixed)

I hope my previous post answered your question so i m closing this request.

--
Regards
Maciej Perlinski
Meant4.com Drupal Shop
maciej.perlinski@meant4.com
http://www.meant4.com