lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Faire Mii <faire....@gmail.com>
Subject Re: why cant i send to solr using jquery post/get function?
Date Mon, 14 Dec 2009 11:54:38 GMT
yes i tried this:


>> $.post('http://localhost:8983/solr/select/?q=body:hello&wt=json,  
>> function(data){
>>       alert(data);
>> });


but it doesnt work.

could someone try that code in your app to see if it works. or is  
there another way of accessing through jquery?


On Dec 14, 2009, at 12:46 PM, khalid y wrote:

> Are you tried with params wt="json" ?
>
> 2009/12/14 Faire Mii <faire.mii@gmail.com>
>
>> when i enter http://localhost:8983/solr/select/?q=body:hello in the  
>> URL
>> field i get all the 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 doesnt give me anything. it doesnt even give me  
>> an alert.
>>
>> i have tried $.get as well without result.
>>
>> what could the problem be?
>>
>>
>>
>> Regards
>>
>> Fayer
>>
>>


Mime
View raw message