Sha256: ede4a4eb87ea75dd0a32416b9262fc7d20277b31111d1d6f0340bd8f913ebaf4

Contents?: true

Size: 320 Bytes

Versions: 7

Compression:

Stored size: 320 Bytes

Contents

class PostsSearcher < ApplicationSearcher
  schema.column :title, {
    type: "ShortText",
    index: true,
    index_type: :full_text_search,
  }
  schema.column :body, {
    type: "Text",
    index: true,
    index_type: :full_text_search,
  }
  schema.column :updated_at, {
    type: "Time",
    index: true,
  }
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
groonga-client-rails-0.9.7 test/apps/rails5-activerecord/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.6 test/apps/rails5-activerecord/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.5 test/apps/rails5-activerecord/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.3 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.2 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.1 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.0 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb