test/apps/rails4-mongoid/app/searchers/posts_searcher.rb in groonga-client-rails-0.9.3 vs test/apps/rails4-mongoid/app/searchers/posts_searcher.rb in groonga-client-rails-0.9.4
- old
+ new
@@ -7,9 +7,14 @@
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