I am also using the rsolr-ext lib and it works great. You may want to
On Apr 17, 6:42 pm, Matt Mitchell <
goodie...@gmail.com> wrote:
> Hi Tony,
>
> The default HTTP adapter is curb. But it should be Net::HTTP - I'll get that
> change in.
>
> The "curb" alternative is Net::HTTP - this does work with jRuby. I had a
> pure Java client working at one point and worked great. But the Net::HTTP
> lib worked just as well so I left it at that.
>
> If you want to use jRuby and HTTP, create an instance of rsolr and then set
> the http adapter like this:
>
> # running in jruby or standard
> rsolr = RSolr.connect(:http)
> rsolr.adapter.connector.adapter_name = :net_http
>
> Then when you actually send a solr request, the Net::HTTP stuff is loaded
> (lazily) and you should be set.
>
> The direct option is slow to start up. Once it is started though, it
> performs really well. For example in a Rails app I'm working on, I create an
> instance of RSolr using the direct connection + jruby. The instance is
> created in the environment file (only once). When a request is made though,
> the connection is "persistent" and requests are quick.
>
> How are you using the direct handler?
>
> Thanks for checking it out!
>
> Matt
>