Skip to content

Instantly share code, notes, and snippets.

@mrcasals
Created January 10, 2013 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrcasals/4501187 to your computer and use it in GitHub Desktop.
Save mrcasals/4501187 to your computer and use it in GitHub Desktop.
@index = Tire::Index.new("my_custom_index")
@index.delete
@index.create :settings => {
:index => {
:analysis => {
:analyzer => {
:default => {
type: "snowball",
:language => 'Catalan'
}
}
}
}
}
# This is from Elastictastic: https://github.com/brewster/elastictastic
Product.sync_mapping
Business.sync_mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment