This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit a222b504e5dcdcd36d4fb770c21c54ad799f6788
tree 160182424955d0e53a7b1109cf9ee1bd25eabdac
parent 3ca8887ab70da88a9e5d6952689af2b396bc9cb1
tree 160182424955d0e53a7b1109cf9ee1bd25eabdac
parent 3ca8887ab70da88a9e5d6952689af2b396bc9cb1
README
gsa-prototype
=============
Prototype/Javascript wrapper for the Google Search Appliance Search Protocol. Fancy cross-domain JSON support included.
Install
=======
gsa-prototype requires a custom XSL be installed on your Google Search Appliance
* Login to the GSA Admin Console
* Click 'Serving' on the sidebar
* Create a new frontend named 'json'
* Click 'Edit' beside the newly created frontend
* Click 'Edit underlying XSLT code'
* Select 'Import Stylesheet'
* Import the template at xsl/json.xsl
* Done!
Usage
=====
>>> var gsa = new Gsa('foo.com')
>>> gsa.search('jesse newland')
true
>>> gsa.results.first().get('title')
"LexBlog IT Director talks about today's platform upgrade : Real <b>...</b>"
>>> gsa.results.first().get('url')
"http://kevin.lexblog.com/2007/07/articles/cool-stuff/lexblog-it-director-talks-about-todays-platform-upgrade/"
See inline documentation in gsa.js for more details.







