[ 
https://issues.apache.org/jira/browse/SOLR-20?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12502872
 ] 

Walter Ferrara commented on SOLR-20:
------------------------------------

Latest rev works perfectly thanks. 
I've been making some time test with this client (only searching), and overall 
results show high times: this maybe due to my minimal knowledge on solr, but 
solr seems fast, is data-receiving/parsing on client that seems slow. Even when 
solr report 0ms (due to cache it I presume) it still take 200ms to get results 
(QueryResponse .getElapsedTime()). I'm using this code: 

SolrQuery query = new SolrQuery(queryString);
CommonsHttpSolrServer server = new 
CommonsHttpSolrServer("http://localhost:8983/solr/";);
QueryResponse response = server.query(query);
SolrDocumentList list = response.getResults();

The slowdown seems to be in client.executeMethod(method) 
(CommonsHttpSolrServer) Any way to speed up (assuming I'm not totally wrong on 
how to use this client...)? Reusing same http connection for multiple queries? 
Playing with MultiThreadedHttpConnectionManager helped a bit, but doesn't seems 
the solution

> A simple Java client for updating and searching
> -----------------------------------------------
>
>                 Key: SOLR-20
>                 URL: https://issues.apache.org/jira/browse/SOLR-20
>             Project: Solr
>          Issue Type: New Feature
>          Components: clients - java
>         Environment: all
>            Reporter: Darren Erik Vengroff
>            Priority: Minor
>         Attachments: DocumentManagerClient.java, DocumentManagerClient.java, 
> solr-client-java-2.zip.zip, solr-client-java.zip, solr-client-sources.jar, 
> solr-client.zip, solr-client.zip, solr-client.zip, 
> solrclient_addqueryfacet.zip, SolrClientException.java, 
> SolrServerException.java
>
>
> I wrote a simple little client class that can connect to a Solr server and 
> issue add, delete, commit and optimize commands using Java methods.  I'm 
> posting here for review and comments as suggested by Yonik.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to