app/services/blacklight/search_service.rb in blacklight-8.0.0.beta4 vs app/services/blacklight/search_service.rb in blacklight-8.0.0.beta5
- old
+ new
@@ -42,10 +42,11 @@
end
end
# retrieve a document, given the doc id
# @param [Array{#to_s},#to_s] id
- # @return [Blacklight::SolrDocument] the solr response object and the first document
+ # @return [Blacklight::SolrDocument] the solr document (or array of
+ # documents if an array of ids was given)
def fetch(id = nil, extra_controller_params = {})
if id.is_a? Array
fetch_many(id, extra_controller_params)
else
fetch_one(id, extra_controller_params)