Documentation

36 views
Skip to first unread message

Shairon Toledo

unread,
Mar 16, 2009, 6:44:44 PM3/16/09
to rsolr
Hi guys,

I've been finding about rsolr documentation but I haven't success,
can someone indicate the map of mine? Mainly the parameters of
methods.

Thx

matt mitchell

unread,
Mar 16, 2009, 9:12:09 PM3/16/09
to rsolr
Hi Shairon,

You're talking about the param mapping for querying? What version are
you using?

The most recent changes to RSolr have involved stripping out all of
the param mapping and response helpers. It's now a very simple and
pure client lib, which was my original goal.

The param mapping and response helpers are now in a different library
called rsolr-ext: http://github.com/mwmitchell/rsolr-ext

This library (rsolr-ext) is going through some major changes right
now. I hope to have some good stuff up by the end of the week.

Matt

Shairon Toledo

unread,
Mar 17, 2009, 5:50:54 AM3/17/09
to rs...@googlegroups.com
Hi Matt,

I would mean that I'd like know about params in general, for example, I've been creating a solr pool with 3 machines, each one there are thousands cores, my idea is create a round-robin algorithm to switch between them. So I didn't find the basically how I can connect in remote host/port using the method RSolr.connect/MRI.

Using in local model(localhost:8983) works fine but I really don't figure out how connect in remote machines.
--
[ ]'s
Shairon Toledo
http://www.hashcode.eti.br

Matt Mitchell

unread,
Mar 17, 2009, 9:01:32 AM3/17/09
to rs...@googlegroups.com
Hi Shairon,

I see what you mean now. That's a great question too, because there are no docs on it!

When you call RSolr.connect, you can pass in two params. The first param goes to the Connection class, and the second argument goes to the adapter (HTTP or Direct). Both arguments are hashes.

If you want to set the url for the HTTP connection, you set the :url option:

adapter_opts = {:url=>'http://www.mysolr.com/solr'}
solr = RSolr.connect({}, adapter_opts)

Matt

Shairon Toledo

unread,
Mar 18, 2009, 12:34:32 PM3/18/09
to rs...@googlegroups.com
Hi Matt,
Thank you for reply, those lines work fine. I'm using

adapter_opts = {:url=>'http://domain:8001/solr/core1'}
to connect in cores

thanks again

Matt Mitchell

unread,
Mar 18, 2009, 1:25:02 PM3/18/09
to rs...@googlegroups.com
Excellent! I'll be working on better docs in the coming weeks.

Matt
Reply all
Reply to author
Forward
0 new messages