Let's say I have an index with multiple objects in it:
class ThingsIndex < Chewy::Index
define_type User do
field :full_name
end
define_type Post do
field :title
end
end
How do I search both users' full_name
and posts' titles
.
The docs only talk about querying one attribute like this:
ThingsIndex.query(term: {full_name: 'Foo'})