Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jnewland/gsa-prototype
Prototype/Javascript wrapper for the Google Search Appliance Search Protocol. Fancy cross-domain JSON support included.
https://github.com/jnewland/gsa-prototype
Last synced: about 1 month ago
JSON representation
Prototype/Javascript wrapper for the Google Search Appliance Search Protocol. Fancy cross-domain JSON support included.
- Host: GitHub
- URL: https://github.com/jnewland/gsa-prototype
- Owner: jnewland
- License: other
- Created: 2008-01-25T03:17:08.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2008-03-26T19:09:36.000Z (over 16 years ago)
- Last Synced: 2023-10-20T20:47:28.472Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 246 KB
- Stars: 13
- Watchers: 3
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
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 ..."
>>> 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.