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 [email protected].
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.