Ruby on Rails Sunday, March 20, 2016

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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/0d2ee390-fe12-4172-8468-fa07adce6ee8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment