Re: Getting solr response data in a JS query

2010-01-11 Thread James McKinney
AJAX Solr does more or less the following: jQuery.getJSON('http://localhost:8983/solr/select/?q=*:*&wt=json&json.wrf=?', {}, function (data) { // do something with data, which is the eval'd JSON response }); -- View this message in context: http://old.nabble.com/Getting-solr-response-data-in-a-

Re: Getting solr response data in a JS query

2010-01-11 Thread Matt Mitchell
I remember having a difficult time getting jquery to work as I thought it would. Something to do with the wt. I ended up creating a little client lib. Maybe this will be useful in finding your problem? example: http://github.com/mwmitchell/get_rest/blob/master/solr_example.html lib: http://git

Re: Getting solr response data in a JS query

2010-01-11 Thread Gregg Hoshovsky
You might be running into an Ajax restriction. See if an article like this helps. http://www.nathanm.com/ajax-bypassing-xmlhttprequest-cross-domain-restriction/ On 1/9/10 11:37 PM, "Otis Gospodnetic" wrote: Dan, You didn't mention whether you tried &wt=json . Does it work if you use that

Re: Getting solr response data in a JS query

2010-01-09 Thread Otis Gospodnetic
Dan, You didn't mention whether you tried &wt=json . Does it work if you use that to tell Solr to return its response in JSON format? Otis -- Sematext -- http://sematext.com/ -- Solr - Lucene - Nutch - Original Message > From: Dan Yamins > To: solr-user@lucene.apache.org > Sent: S