Sent from my HTC

----- Forwarded message -----
From: "Adel Mohamed Khalifa" <[email protected]>
To: <[email protected]>
Subject: SolrJ ubuntu Problem
Date: Sun, Mar 13, 2016 14:11

Dear Iker,Thank you for your interest of my problem. I want to say that when I 
run my code from windows there’s no problem and I get results correctly, but 
when I run it from Ubuntu server it’s stopped at this line ( “  HttpSolrServer 
server = new HttpSolrServer("http://localhost:8983/solr  “). without any 
exception. Regards,
Adel Khalifa  From: Iker Huerga [mailto:[email protected]] 
Sent: Sunday, March 13, 2016 2:07 PM
To: [email protected]
Subject: Re: SolrJ ubuntu Problem I would try params.add instead of params.set  
Also, are you sure you are getting results back from the server? can you try 
putting a break point in

SolrDocumentList results = res.getResults()

and see if you are actually getting something back from the server....

As an alternative, I would tail the solr.log file and check the query that is 
being sent to the server. It might be that the query is not properly formed 
since you are constructing it based on the request parameters.....

HTH
2016-03-13 7:56 GMT-04:00 Adel Mohamed Khalifa <[email protected]>:It’s 
Solr-5.3.0. Please check the attachment you will find the code of the servlet 
called by JavaScript and return the json file to get the results. Regards,
Adel Khalifa  From: Iker Huerga [mailto:[email protected]] 
Sent: Sunday, March 13, 2016 1:45 PM
To: [email protected]
Subject: Re: SolrJ ubuntu Problem
What version of solrj are you using? can you share the code? 
Also, keep in mind that solrj uses SLF4J and Apache Commons Logging, so you 
will need an implementation of these in your classpath to see the logs, take a 
look at https://wiki.apache.org/solr/SolrLogging#SolrJ_and_Logging_Jars
2016-03-13 7:37 GMT-04:00 Adel Mohamed Khalifa <[email protected]>:I 
edited and add the core but still nothing .. although the code in try and Catch 
but I did not get any exception just stop.Other side when I run the code in 
windows platform I get the result correctly. Regards,
Adel Khalifa | Developer | Saudisoft-Egypt |  Tel: +2 023 303 2037 - ext 112 | 
M +2 01149247744 | Fax +2 023 303 2036 | Follow us on  |  | 
From: Iker Huerga [mailto:[email protected]] 
Sent: Sunday, March 13, 2016 1:33 PM
To: [email protected]
Subject: Re: SolrJ ubuntu Problem Try adding the core/collection name in the 
url as in 
HttpSolrServer server = new 
HttpSolrServer("http://localhost:8080/solr/collection1";);


2016-03-13 6:12 GMT-04:00 Adel Mohamed Khalifa <[email protected]>:Hello, 
I am facing a problem when I try to connect to the Solr Server (HttpSolrServer 
server = new HttpSolrServer("http://localhost:8983/solr";);)Note that my 
platform is Ubuntu and I install solr server on it and it work correctly when I 
try to log on through browser but when I try in netbeans I face the problem. I 
hope you help me, Thanks Regards,
Adel Khalifa | Developer | Saudisoft-Egypt |  Tel: +2 023 303 2037 - ext 112 | 
M +2 01149247744 | Fax +2 023 303 2036 | Follow us on  |  | 




-- Iker Huergahttp://www.ikerhuerga.com/ 





-- Iker Huergahttp://www.ikerhuerga.com/ 





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


-- Iker Huergahttp://www.ikerhuerga.com/

Reply via email to