Skip to content

Commit

Permalink
Remove file_format from the CatalogController
Browse files Browse the repository at this point in the history
It is only indexed on FileSets.
  • Loading branch information
jcoyne committed Jun 6, 2016
1 parent e41c411 commit 057c89b
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -30,7 +30,6 @@ class CatalogController < ApplicationController
config.add_facet_field solr_name('language', :facetable), limit: 5
config.add_facet_field solr_name('based_near', :facetable), limit: 5
config.add_facet_field solr_name('publisher', :facetable), limit: 5
config.add_facet_field solr_name('file_format', :facetable), limit: 5
config.add_facet_field 'generic_type_sim', show: false, single: true

# Have BL send all facet field names to Solr, which has been the default
Expand Down Expand Up @@ -78,7 +77,7 @@ class CatalogController < ApplicationController
label_name = solr_name('title', :stored_searchable, type: :string)
contributor_name = solr_name('contributor', :stored_searchable, type: :string)
field.solr_parameters = {
qf: "#{title_name} #{label_name} file_format_tesim #{contributor_name}",
qf: "#{title_name} #{label_name} #{contributor_name}",
pf: title_name.to_s
}
end
Expand Down

0 comments on commit 057c89b

Please sign in to comment.