Skip to content

Instantly share code, notes, and snippets.

@mrcasals
Created January 10, 2013 10:47
Show Gist options
  • 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