Sha256: a1aa9e8d431a184b8c7f37c724603ca4013697d99f7fff476e655ad25f2723f7
Contents?: true
Size: 554 Bytes
Versions: 1
Compression:
Stored size: 554 Bytes
Contents
require 'active_support/concern' module Georgia module Indexer module SolrAdapter module ActsAsTaggableOnTagExtension extend ActiveSupport::Concern included do searchable do text :name end def self.search_index model, params ActsAsTaggableOn::Tag.search do fulltext params[:q] do fields(:name) end paginate(page: 1, per_page: 10) end.results end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.7.7 | lib/georgia/indexer/extensions/solr_adapter/acts_as_taggable_on/tag.rb |