takezoe / solr-scala-client

Solr Client for Scala
Apache License 2.0
91 stars 43 forks source link

Asynchronous Solr calls #9

Closed Hocdoc closed 11 years ago

Hocdoc commented 11 years ago

First of all thank you for your great Scala-Solr library. :-)

Are there any plans to make the client asynchronous (f.ex. as Play2 module)?

takezoe commented 11 years ago

It's interesting. But SolrJ (solr-scala-client uses it internally) does not provide asynchronous non-blocking API. So we have to make our Solr client without SolrJ at first. It might be difficult to provide asynchronous API soon.

Hocdoc commented 11 years ago

Ok, thanks. I will try to use Play's Webservice library to create asynchronous Solr calls and will maybe create a library in the style of scala-solr-client.

takezoe commented 11 years ago

I started to implement async API in the branch: https://github.com/takezoe/solr-scala-client/tree/async

Here is a simple example: https://github.com/takezoe/solr-scala-client/blob/async/src/main/scala/jp/sf/amateras/solr/scala/sample/AsyncSolrClientSample.scala

Of course, This is still experimental implementation, so it might require long time until release.

takezoe commented 11 years ago

Added async API in 0.0.8. Please check it!

udi-volk commented 9 years ago

I would very much like to use asynch API from my java code. I M not familiar with scala but guessing I could easily interface from Java to scala for that purpose. has the asynch interface been tested?