Define mapping type for nested object in Tire

Tire support the loading of the Comment class from the
PersistentArticleWithCastedCollection object; but i can't find a way to
define mapping definition for the Comment object. Is there a way to do that
in Tire?

class PersistentArticleWithCastedCollection
include Tire::Model::Persistence

property :title
property :comments, :class => [Comment]

class Comment
include Tire::Model::Persistence
property :title, :analyzer => 'snowball'

def initialize(params); @attributes =; end
def method_missing(method_name, arguments);
@attributes[method_name]; end
def as_json(
@attributes; end

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
For more options, visit