lib/georgia/indexer/extensions/solr_adapter/georgia/page.rb in georgia-0.7.7 vs lib/georgia/indexer/extensions/solr_adapter/georgia/page.rb in georgia-0.7.8
- old
+ new
@@ -49,11 +49,11 @@
end
time :updated_at # default for ordering
end
def self.search_index model, params
- @search = model.search do
+ model.search do
fulltext params[:query] do
fields(:title, :excerpt, :text, :keywords, :tags, :url, :template)
end
facet :state, :template, :tag_list
# ensure pages indexed in the wrong bucket don't get displayed
@@ -62,10 +62,10 @@
with(:template, params[:t]) unless params[:t].blank?
with(:tag_list).all_of(params[:tg]) unless params[:tg].blank?
order_by (params[:o] || :updated_at), (params[:dir] || :desc)
paginate(page: params[:page], per_page: (params[:per] || 25))
instance_eval &model.extra_search_params if model.respond_to? :extra_search_params
- end.results
+ end
end
end
end
\ No newline at end of file