Re: can't make GET request to solr in android app

2014-05-05 Thread blach
thanks, basically I'm running solr on my localhost(computer) and trying to access it through the emulator in eclipse, NOT in the physical phone. Can it be done? -- View this message in context:

Re: can't make GET request to solr in android app

2014-05-05 Thread blach
Hi, It's not an error if you see my code, there is a catch statement, which contains the FAIL message, it does always show it. -- View this message in context: http://lucene.472066.n3.nabble.com/can-t-make-GET-request-to-solr-in-android-app-tp4134584p4134709.html Sent from the Solr - User

Re: can't make GET request to solr in android app

2014-05-05 Thread Shawn Heisey
On 5/5/2014 9:02 AM, blach wrote: It's not an error if you see my code, there is a catch statement, which contains the FAIL message, it does always show it. In your code, you are not printing the stack trace or throwing the exception. If you want to see it in your own code, you'll need to

Re: can't make GET request to solr in android app

2014-05-05 Thread blach
Yes Im reading about SOLRJ now I wrote this code for it, but its the same problem, in this case all the app is stopping, this is the code String urlString = http://localhost:8983/solr;; SolrServer solr = new HttpSolrServer(urlString);

Re: can't make GET request to solr in android app

2014-05-05 Thread Shawn Heisey
On 5/5/2014 11:05 AM, blach wrote: I wrote this code for it, but its the same problem, in this case all the app is stopping, this is the code String urlString = http://localhost:8983/solr;; SolrServer solr = new HttpSolrServer(urlString); SolrQuery query = new SolrQuery(); query.set(q, mem);

Re: can't make GET request to solr in android app

2014-05-05 Thread blach
Thank you Shawn I did what you told me. now this is my code: import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrServer; //import org.apache.solr.client.solrj.SolrServer; import org.apache.solr.client.solrj.SolrServerException; import

Re: can't make GET request to solr in android app

2014-05-05 Thread Shawn Heisey
On 5/5/2014 12:17 PM, blach wrote: Thank you Shawn I did what you told me. now this is my code: snip it gives me error that org.apache.solr.client.solrj is not found I don't know how to do classpath management in the Android enviroment. You'll need to add the solrj jar to your

Re: can't make GET request to solr in android app

2014-05-05 Thread blach
I have included the reference for this library in good way but still giving me the same error. feeling -- View this message in context: http://lucene.472066.n3.nabble.com/can-t-make-GET-request-to-solr-in-android-app-tp4134584p4134785.html Sent from the Solr - User mailing list archive at

can't make GET request to solr in android app

2014-05-04 Thread blach
Hello all. I'm trying to make a small search engine based on android. when I'm calling solr by this http://localhost:8983/solr/collection1/select?q=+loginValue+wt=jsonindent=true;; (loginValue is the keywork im looking for) Its always giving me a fail message this is the code: try{

Re: can't make GET request to solr in android app

2014-05-04 Thread Alexandre Rafalovitch
Step back a bit here. Did you manage to get Solr itself running on Android? I thought that supposed to be not feasible! You code seems to imply that you have, because you are connecting to localhost. Alternatively - and more reasonably - if you have Solr running on the server in the cloud, you

Re: can't make GET request to solr in android app

2014-05-04 Thread Shawn Heisey
On 5/4/2014 6:22 PM, blach wrote: I'm trying to make a small search engine based on android. when I'm calling solr by this http://localhost:8983/solr/collection1/select?q=+loginValue+wt=jsonindent=true;; (loginValue is the keywork im looking for) Without seeing the error you're getting, we