cirandas.net

commit 76ea5d2b16871a04dabc899ec4db555e0fea9193

Author: Braulio Bhavamitra <braulio@prout.io>

find_by_contents: register_search_term is breaking solr

 app/concerns/find_by_contents.rb | 2 +-


diff --git a/app/concerns/find_by_contents.rb b/app/concerns/find_by_contents.rb
index 3b952cf62af8a8b47be1742f1b0ca98d69a6ecdd..2c1eab288993da8728e7614ec4f1ad6b6fcc6426 100644
--- a/app/concerns/find_by_contents.rb
+++ b/app/concerns/find_by_contents.rb
@@ -19,7 +19,7 @@
   def find_by_contents(asset, context, scope, query, paginate_options={:page => 1}, options={})
     scope = scope.with_templates(options[:template_id]) unless options[:template_id].blank?
     search = plugins.dispatch_first(:find_by_contents, asset, scope, query, paginate_options, options)
-    register_search_term(query, scope.count, search[:results].count, context, asset)
+    #register_search_term(query, scope.count, search[:results].count, context, asset)
     search
   end