We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83bb4d4 commit b8eddedCopy full SHA for b8edded
1 file changed
app/controllers/search_controller.rb
@@ -13,6 +13,10 @@ def index
13
search_models.each do |model_name|
14
model = model_name.constantize
15
@results[model_name.underscore.pluralize.to_sym] = Sunspot.search(model) do
16
+ if Facets.applicable?(:across_all_spaces, model)
17
+ Facets.across_all_spaces(self, false, current_user)
18
+ end
19
+
20
fulltext search_params
21
22
with('end').greater_than(Time.zone.now) if model_name == 'Event'
0 commit comments