1 // $Id$ 2 3 /** 4 * @see http://wiki.apache.org/solr/SolJSON#JSON_specific_parameters 5 * @class Manager 6 * @augments AjaxSolr.AbstractManager 7 */ 8 AjaxSolr.Manager = AjaxSolr.AbstractManager.extend( 9 /** @lends AjaxSolr.Manager.prototype */ 10 { 11 executeRequest: function (servlet) { 12 var self = this; 13 if (this.proxyUrl) { 14 jQuery.post(this.proxyUrl, { query: this.store.string() }, function (data) { self.handleResponse(data); }, 'json'); 15 } 16 else { 17 jQuery.getJSON(this.solrUrl + servlet + '?' + this.store.string() + '&wt=json&json.wrf=?', {}, function (data) { self.handleResponse(data); }); 18 } 19 } 20 }); 21