Last Updated: February 25, 2016
·
1.103K
· markhazlett

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.