Question

I'm reading sunspot documentation and find that sunspot based on RSolr library. Is there any way to get connection to perform low level request like this pseudo-code:

solr = Sunspot.connection
response = solr.get 'select', :params => {:q => '*:*'}
Was it helpful?

Solution

Not as of the current version (1.3.2). Well, you can, but you'd have to instance_eval a few objects to get to the underlying RSolr object. Patches are welcome at http://github.com/sunspot/sunspot — a good accessor method for the RSolr connection would be welcome.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top