Skip to content

Instantly share code, notes, and snippets.

@jarosan
Created January 24, 2012 17:52
Show Gist options
  • Save jarosan/1671509 to your computer and use it in GitHub Desktop.
Save jarosan/1671509 to your computer and use it in GitHub Desktop.
:seasons => [
{
:from => 20010101,
:to => 20120101,
:price => 75,
:weekend_price => 100
},
{
:from => 20120102,
:to => 20150101,
:price => 65,
:weekend_price => 75
},
],
mapping do
indexes :place_type, :type => 'string', :analyzer => 'keyword'
indexes :search_ranking, :type => 'long'
indexes :seasons do
mapping do
indexes :from, :type => 'integer'
indexes :to, :type => 'integer'
indexes :price, :type => 'integer'
indexes :weekend_price, :type => 'integer'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment