Re: Multiple concurrent queries to Solr

2015-08-24 Thread Arcadius Ahouansou
BTW, google revealed that there is a 3rd-party Scala library for async calls which could be usable from Java. I have not tried it myself though https://github.com/inoio/solrs On 24 August 2015 at 21:35, Arcadius Ahouansou wrote: > Hi Ashish. > > The Apache HttpAsyncClient uses Java Future to wr

Re: Multiple concurrent queries to Solr

2015-08-24 Thread Arcadius Ahouansou
Hi Ashish. The Apache HttpAsyncClient uses Java Future to wrap a synchronous call into asyn The above ticket does similar thing by wrapping a SolrJ call into Future Feel free to submit any proposal you may have to the dev list. Arcadius On 24 August 2015 at 07:20, Ashish Mukherjee wrote: > Th

Re: Multiple concurrent queries to Solr

2015-08-23 Thread Ashish Mukherjee
Thanks, everyone. Arcadius, that ticket is interesting. I was wondering if an implementation of SolrClient could be based on HttpAsyncClient instead of HttpSolrClient. Just a thought right now, which needs to be explored deeper. - Ashish On Mon, Aug 24, 2015 at 1:46 AM, Arcadius Ahouansou wrote

Re: Multiple concurrent queries to Solr

2015-08-23 Thread Arcadius Ahouansou
Hello Ashish. Therse is an unfinished work about this at https://issues.apache.org/jira/browse/SOLR-3383 Maybe you want to have a look and contribute? Arcadius. On 23 August 2015 at 17:02, Walter Underwood wrote: > The last time that I used the HTTPClient library, it was non-blocking. It > do

Re: Multiple concurrent queries to Solr

2015-08-23 Thread Walter Underwood
The last time that I used the HTTPClient library, it was non-blocking. It doesn’t try to read from the socket until you ask for data from the response object. That allows parallel requests without threads. Underneath, it has a pool of connections that can be reused. If the pool is exhausted, it

Re: Multiple concurrent queries to Solr

2015-08-23 Thread Shawn Heisey
On 8/23/2015 7:46 AM, Ashish Mukherjee wrote: > I want to run few Solr queries in parallel, which are being done in a > multi-threaded model now. I was wondering if there are any client libraries > to query Solr through a non-blocking I/O mechanism instead of a threaded > model. Has anyone attempt

Multiple concurrent queries to Solr

2015-08-23 Thread Ashish Mukherjee
Hello, I want to run few Solr queries in parallel, which are being done in a multi-threaded model now. I was wondering if there are any client libraries to query Solr through a non-blocking I/O mechanism instead of a threaded model. Has anyone attempted something like this? Regards, Ashish