You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the docs, it says that "This can also be used to query multivalued fields, allowing a single item to be in multiple groups."
When I attempt this, the search object renders nil for search.groups.
Here's my code:
searchable do
string :event_ids, :multiple => true do
self.events.map{|event| event.id}
end
end
search = Project.search do
group do
event_ids.each do |event_id|
query event_id do
with(:event_id, event_id)
end
end
end
end
The text was updated successfully, but these errors were encountered:
In the docs, it says that "This can also be used to query multivalued fields, allowing a single item to be in multiple groups."
When I attempt this, the search object renders nil for search.groups.
Here's my code:
The text was updated successfully, but these errors were encountered: