Skip to content
Snippets Groups Projects
Commit 3cb8346d authored by Anusha Ranganathan's avatar Anusha Ranganathan
Browse files

Add Dataset and CrcDataset search fields to all search fields

parent ae2e670f
Branches feature/search_modifications
Tags
1 merge request!273Add Dataset and CrcDataset search fields to all search fields
Pipeline #12709 failed
......@@ -161,8 +161,11 @@ class CatalogController < ApplicationController
# solr request handler? The one set in config[:default_solr_parameters][:qt],
# since we aren't specifying it otherwise.
config.add_search_field('all_fields', label: 'All Fields') do |field|
all_names = config.show_fields.values.map(&:field).join(" ")
title_name = "title_tesim"
all_names = (config.show_fields.values.map(&:field) +
DatasetIndexer.search_fields +
CrcDatasetIndexer.search_fields
).uniq.join(" ")
title_name = solr_name("title", :stored_searchable)
field.solr_parameters = {
qf: "#{all_names} file_format_tesim all_text_timv",
pf: title_name.to_s
......
......@@ -17,6 +17,8 @@ en:
complex_year_itsi: Year
complex_date_accepted_dtsim: Date accepted
complex_year_accepted_itsi: Year accepted
complex_date_archived_dtsim: Date archived
complex_year_archived_itsi: Year archived
complex_date_available_dtsim: Date available
complex_year_available_itsi: Year available
complex_date_copyrighted_dtsim: Date copyrighted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment