Without being able to see your particular implementation, it's tough to tell 
you what to do. Further, if you're using the standard controls, you're going to 
be up against the Closure compiler's obfuscation of the SearchControl, 
CustomSearchControl, etc. That said, the basic principle will be the same, 
regardless of your implementation. Intercept the search before it executes, run 
the query through a regexp (e.g., /\bmore:(\S*|\([^\)]\))\b/ ), remove the 
search operator if it's already added to the query somewhere, and switch to the 
appropriate tab (i.e., portion of the control).

Jeremy R. Geerdes
Effective website design & development
Des Moines, IA

For more information or a project quote:
http://jgeerdes.home.mchsi.com
[email protected]

If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!

On Sep 24, 2010, at 11:43 PM, vfein wrote:

> I have a couple of different search boxes on our page, all of which
> use the CSE, just using different refinements.However, we can't seem
> to get the correct refinement to be highlighted.
> 
> For example if I type in hats in the product search box, it will go to
> the search page and search for "hat more:products" and return the
> correct results, but the "Site" facet / refinement is still selected
> (the first one).
> 
> Is there a way I can get the products tab highlighted?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google AJAX APIs" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-ajax-search-api?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to