Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ def index
search_models.each do |model_name|
model = model_name.constantize
@results[model_name.underscore.pluralize.to_sym] = Sunspot.search(model) do
if Facets.applicable?(:across_all_spaces, model)
Facets.across_all_spaces(self, false, current_user)
end
Comment thread
fbacall marked this conversation as resolved.

fulltext search_params

with('end').greater_than(Time.zone.now) if model_name == 'Event'
Expand Down
Loading