I am having issues indexing documents JqueryAJAX. This is the code that I use:
var data = {
id: "hanah123",
weight: 1100,
subject: "SOLR Testing",
description: randomPhrase
};
var stuffToSend = [];
stuffToSend.push(data);
debugger;
$.ajax({
url: 'awsaddress:8983/solr/update/json?commit=true',
data: JSON.stringify(stuffToSend),
type: 'POST',
dataType: "json",
crossDomain: true,
success: function (data) {
console.log("And this is success: " + data);
}
I enter success all the time, and this is the message that I receive:
"<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">5</int></lst>
</response>
"
What do I need to change to make it work?