No Transport error while calling from Jquery

Hi All,

I am trying to call the search from Jquery and I am getting a "NO Transport
Error" for the request.

function search(){
var data = {
query: {
query_string: {
query: 'Selmath'
fields: 'customername'
url: 'http://localhost:9200/_search',
type: 'POST',
dataType: 'json',
success: function(data) {
alert('Total results found: ' +;
error: function (data, textStatus,error) {

Please help me.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit