gxhlga
Last Updated: February 25, 2016
·
751
· markhazlett
84ff10dc59fb48ab802b0dcb5b093509

Getting Sunspot Solr group searches to work with Active Model Serializers

module Sunspot
  module Search
    class Group
      include ActiveModel::SerializerSupport
    end
  end
 end

This will add serializer support to grouped searches in sunspot, allowing you to send in the group to the serializer.

Say Thanks
Respond