Skip to content
Snippets Groups Projects
Commit 7217bffb authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette
Browse files

Change SOLR parameters to return Title and Author

parent 2a562db0
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@ class Search::SolrController < ApplicationController
r["search.resourcetype"].to_i.equal? 2
}.each do |i|
resultList.add i
puts i
end
return resultList
end
......@@ -35,7 +36,10 @@ class Search::SolrController < ApplicationController
def solr_search_default_parameters
return {
"fl"=>["search.resourcetype, search.resourceid"],
"fl"=>["
search.resourcetype, search.resourceid,
handle, author, title,
"],
"facet"=>"true",
"facet.offset"=>"0",
"facet.mincount"=>"1",
......
......@@ -4,7 +4,7 @@
<ul>
<% @objectsFound.each do |i| %>
<li>
<b><%= link_to i["search.resourceid"].to_i %></b>
<b><%= link_to i["title"][0]%></b>
</li>
<% end %>
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment