Skip to content

Instantly share code, notes, and snippets.

@mrcasals
Created January 10, 2013 10:47
Show Gist options
  • Select an option

  • Save mrcasals/4501187 to your computer and use it in GitHub Desktop.

Select an option

Save mrcasals/4501187 to your computer and use it in GitHub Desktop.

Revisions

  1. mrcasals created this gist Jan 10, 2013.
    19 changes: 19 additions & 0 deletions seeds.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    @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