Hi
I am able to search in elastic search with AJAX. But I am not able insert
record with AJAX. Can someone help me..
var attr={
"username":"username",
"password":"password"
};
$.ajax( {
url: 'http://localhost:9200/'+'objects'+'/'+'saved_queries1/1/',
type: 'POST',
crossDomain: true,
dataType: 'json',
data: JSON.stringify(attr),
success: function(response) {
console.log("SUCCESS");
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("ERROR");
}
});
}
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/67c75595-414a-475b-bdd5-be40af321fce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi ,
Can you look into firebug and say what its returning.
Thanks
Vineeth
On Tue, May 6, 2014 at 6:29 PM, Raghavendar T S raghav280392@gmail.comwrote:
Hi
I am able to search in Elasticsearch with AJAX. But I am not able insert
record with AJAX. Can someone help me..
var attr={
"username":"username",
"password":"password"
};
$.ajax( {
url: 'http://localhost:9200/'+'objects'+'/'+'saved_queries1/1/',
type: 'POST',
crossDomain: true,
dataType: 'json',
data: JSON.stringify(attr),
success: function(response) {
console.log("SUCCESS");
},
error: function(jqXHR, textStatus, errorThrown) {
console.log("ERROR");
}
});
}
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/67c75595-414a-475b-bdd5-be40af321fce%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/67c75595-414a-475b-bdd5-be40af321fce%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DM1TC2KowAM_R%3Ddq44XPbrz4Cxd5S_LqUdoLdvLUwRvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.