Frequently Asked Questions - SearchStax

The SearchStax® Frequently Asked Questions page includes the following approved question and answer about our Apache Solr Cloud services.

Can I query Solr from javascript?

A user asked for help sending queries to Solr from Javascript.

The team suggested using the JSONP format, as follows:

$.ajax({
type: 'GET',
dataType: 'jsonp',
data: {
'q': ':',
'wt': 'json',
},
jsonp: 'json.wrf',
url: '/solr/kmterms_dev/select',
success: function(msg) {
console.log(msg);
}
});
});

We love to answer questions!

Please contact the SearchStax Support Desk immediately if you have any question about Solr Cloud deployments.

Return to Frequently Asked Questions.