When I enter 'http://localhost:8983/solr/select/?q=body%3Ahello` in the URL field I get all the correct results.
but when I'm using jquery code:
$.post(http://localhost:8983/solr/select/?q=body:hello, function(data){
alert(data);
});
OR
$.post('http://localhost:8983/solr/select/?, {q: 'body:hello'}, function(data){
alert(data);
});
I get nothing. it doesn't give me anything. not even an alert.
I have tried $.get
as well without result.
what could the problem be and what is best practice for using solr with ajax?