I use ajax-solr as a front-end for Solr search. In order to get the search results, ajax-solr
uses jQuery.getJSON()
to GET
a specific URL from the server. The relevant code is here:
AjaxSolr.Manager = AjaxSolr.AbstractManager.extend(
/** @lends AjaxSolr.Manager.prototype */
{
executeRequest: function (servlet) {
var self = this;
if (this.proxyUrl) {
jQuery.post(this.proxyUrl, { query: this.store.string() }, function (data) { self.handleResponse(data); }, 'json');
}
else {
jQuery.getJSON(this.solrUrl + servlet + '?' + this.store.string() + '&wt=json&json.wrf=?', {}, function (data) { self.handleResponse(data); });
}
}
});
The problem is that the URL shown in the browser address bar doesn't change no matter what the GET
URL is.
I want to allow users to share the search URL over email or twitter. So I need to make the URL loaded by jQuery.getJSON()
visible in the browser address bar. Is there any way to do that?
Thanks.