app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-0.1.0 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-0.2.0
- old
+ new
@@ -18,10 +18,10 @@
end
def index
respond_to do |format|
format.html
- format.json { render json: @searches }
+ format.json { render json: @searches, root: false }
end
end
def autocomplete
(_, document_list) = get_search_results autocomplete_params