Comment 11 for bug 236947

Revision history for this message
solrize (solrize) wrote : Re: search API improvements

per Stephanie's request I've added a callback parameter, e.g.

http://apollonius.us.archive.org:9071/api/search?q={"query":"authors:(felix klein) has_fulltext:1"}&prettyprint=true&format=expanded&callback=olresults

This wraps the json result string in a function call with the name given in the callback parameter, e.g.

 olresults({"status": "ok", ... })

I think the idea is to insert the result directly into the dhtml sent to the user's browser so that client side javascript can process it.