Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Prettifying the schema, adding a text_en type for stemming.
Browse files Browse the repository at this point in the history
  • Loading branch information
nz committed Oct 26, 2011
1 parent ce86a39 commit fd5c5f6
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 211 deletions.
1 change: 1 addition & 0 deletions app/models/product.rb
Expand Up @@ -2,6 +2,7 @@ class Product < ActiveRecord::Base

searchable do
text :name, stored: true, default_boost: 10
text :name, as: 'name_text_en'
text :description, stored: true
end

Expand Down

0 comments on commit fd5c5f6

Please sign in to comment.