Elasticsearch basic usage with has_many model relationships

The docs for elasticsearch on github show me basic usage like @users =
User.search(@query).records but actually users has_many other models and
i
want my searches to match any fields from any of the child models, how
would i write such searces? ~ thanks