karmi/tire — pull request #374 by andhapp (2012-06-11 12:06:17+00:00)
Title: Mapping generated automatically shouldn't have type property

If we use the following:

Tire.index 'articles' do
store :type => 'article',
:title => 'Three',
:tags => ['java'],
:published_on => '2011-01-02'
end

then articles index has 'type' as one of the properties in the mapping, for example:

{"analytics":{"study_tracking":{"properties":{"id":{"type":"string"},"member_course_id":{"type":"string"},"tracked_on":{"type":"date","format":"dateOptionalTime"},"type":{"type":"string"}}}}}

This pull request fixes that so that type is not one of the properties in the mapping.