public
Description: Prototype/Javascript wrapper for the Google Search Appliance Search Protocol. Fancy cross-domain JSON support included.
Homepage:
Clone URL: git://github.com/jnewland/gsa-prototype.git
name age message
file .gitignore Mon Jan 28 15:20:00 -0800 2008 toTemplateReplacements() [jnewland]
file LICENSE Fri Jan 04 06:41:50 -0800 2008 license [jnewland]
file README Loading commit data...
file Rakefile
directory dist/ Thu Jan 24 07:56:32 -0800 2008 refactoring to split the source into logicalall... [jnewland]
directory lib/ Tue Jan 29 13:14:05 -0800 2008 up to prototype 1.6.0.2 [jnewland]
directory pkg/ Thu Jan 24 07:56:32 -0800 2008 refactoring to split the source into logicalall... [jnewland]
directory spec/
directory src/
directory xsl/
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&#39;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.