Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I'm working on approach #2 above. We have version 6.4 of the appliance and it provides JSON for the suggestion service (probably new since Riley's question). For example:</p> <p><a href="http://code.google.com/apis/searchappliance/documentation/64/xml_reference.html#RichOutputFormat" rel="nofollow">http://code.google.com/apis/searchappliance/documentation/64/xml_reference.html#RichOutputFormat</a></p> <p>What I ran into was that cross-domain limitations prevented using the appliance JSON service on non-appliance website search forms, including those in subdomains of our shared high level domain.</p> <p>I'm testing a simple Java servlet now that makes the suggest call. It takes incoming requests, gets the response from the appliance, outputs in JSONP and sends back to the calling page.</p> <p>There are a couple references I've found related to proxying the suggest service:</p> <p><a href="http://groups.google.com/group/Google-Search-Appliance-Help/browse_thread/thread/72406a271a6d9917/" rel="nofollow">http://groups.google.com/group/Google-Search-Appliance-Help/browse_thread/thread/72406a271a6d9917/</a></p> <p><a href="http://www.mcplusa.com/blog/2009/07/adding-google-search-appliance-suggest-search-to-your-existing-page/" rel="nofollow">http://www.mcplusa.com/blog/2009/07/adding-google-search-appliance-suggest-search-to-your-existing-page/</a></p> <p><a href="http://sites.google.com/site/lightbends/gsa_qs_6_2" rel="nofollow">http://sites.google.com/site/lightbends/gsa_qs_6_2</a></p> <p>and some related to JSONP with jQuery:</p> <p><a href="http://devlog.info/2010/03/10/cross-domain-ajax/" rel="nofollow">http://devlog.info/2010/03/10/cross-domain-ajax/</a></p> <p><a href="http://www.ibm.com/developerworks/library/wa-aj-jsonp1/" rel="nofollow">http://www.ibm.com/developerworks/library/wa-aj-jsonp1/</a></p> <p>JSON to JSONP in the servlet is quick and probably dirty in the approach I'm taking :)</p> <p>It's not in production yet, so I can't speak to what we'll find in terms of performance and other challenges. I like that the service is exposed from a secondary server rather than directly from the appliance (allowing for throttling of incoming requests if needed, etc.) if the performance can keep up.</p> <h2>October 1, 2010 Update</h2> <p>Sorry - my post above applies only to the suggest service and not to the general search results. You could still take the XML response, process and wrap that in JSON/JSONP, but that would take longer I suspect. I was using the JSONP in the context of suggesting search queries with jQuery autocomplete, so having the quick response (as they type) is important.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload