AJAX Search Research
Keep Handling Results
This sample demonstrates the basics of clipping. The key method thats used in this sample is the setOnKeepHandler() method of the search control object. This causes a clickable link to show up underneath each search result which, when clicked, calls the target handler. In this sample, the target handle makes a deep clone of the result's .html property and then attaches this onto the current page.
Custom Search Engine Refinements
This sample builds on the sample above by introducing custom search engine refinements. You will note in the calls to setSiteRestriction() for the right hand side searcher, the code is using the opt_refinement argument to further restrict the search results within the custom search engine.
Custom Search Engines
This sample builds on the sample above by making heavy use of a product review custom search engine. Note the various calls to setSiteRestriction() all being made using a custom search engine id. The sample includes some other concepts that are not related to site restriction. These include the use of the GSearchForm object that is used to drive multiple search controls and the use of custom CSS directives that restyle portions of the search control and results.


