Sha256: 1ea1aafcbd7728f669b2366987519cfa460b0bad266357e40f6c71f6627b8806

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 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 :tags, {
    type: "ShortText",
    vector: true,
    index: true,
  }
  schema.column :updated_at, {
    type: "Time",
    index: true,
  }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
groonga-client-rails-0.9.7 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.6 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.5 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb
groonga-client-rails-0.9.4 test/apps/rails4-mongoid/app/searchers/posts_searcher.rb