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]
end
class Comment
include Tire::Model::Persistence
property :title, :analyzer => 'snowball'
def initialize(params); @attributes =
HashWithIndifferentAccess.new(params); end
def method_missing(method_name, arguments);
@attributes[method_name]; end
def as_json();
@attributes; end
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 elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.