NatGordon
NatGordon

Reputation: 966

Can Sunspot/Solr work with different RequestHandlers for different Rails classes?

I have one Rails app with two very different classes that are being indexed in Solr (using Sunspot). One is users and the other is a product catalog. There are specific RequestHandlers that I'd like to use for just the product catalog.

Do I set up two Solr instances with different config? If so, how do I point each class to the right instance?

Otherwise is there a way in Sunspot/Solr to tie a class or request to specific RequestHandlers?

Upvotes: 0

Views: 66

Answers (1)

Jayendra
Jayendra

Reputation: 52779

Sunspot does provide the ability to specify the handler, check link.

Upvotes: 1

Related Questions