Skip to content

Commit

Permalink
changed user_defined.string_3 from a string to a text search field
Browse files Browse the repository at this point in the history
  • Loading branch information
jambun committed Jan 14, 2015
1 parent 873410f commit 608103e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion indexer/common_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class CommonIndexer
# Index user defined fields
indexer.add_document_prepare_hook {|doc, record|
if record['record']['user_defined']
doc['string_3_u_ustr'] = record['record']['user_defined']['string_3']
doc['string_3_u_utext'] = record['record']['user_defined']['string_3']

doc['text_1_u_utext'] = record['record']['user_defined']['text_1']
doc['text_2_u_utext'] = record['record']['user_defined']['text_2']
Expand Down
2 changes: 1 addition & 1 deletion search_definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
AdvancedSearch.define_field(:name => 'extent_number', :type => :text, :visibility => [:staff], :solr_field => 'extent_number_u_ustr')
AdvancedSearch.define_field(:name => 'extent_container_summary', :type => :text, :visibility => [:staff], :solr_field => 'extent_container_summary_u_utext')
AdvancedSearch.define_field(:name => 'extent_physical_details', :type => :text, :visibility => [:staff], :solr_field => 'extent_physical_details_u_utext')
AdvancedSearch.define_field(:name => 'user_defined_string_3', :type => :text, :visibility => [:staff], :solr_field => 'string_3_u_ustr')
AdvancedSearch.define_field(:name => 'user_defined_string_3', :type => :text, :visibility => [:staff], :solr_field => 'string_3_u_utext')
AdvancedSearch.define_field(:name => 'user_defined_text_1', :type => :text, :visibility => [:staff], :solr_field => 'text_1_u_utext')
AdvancedSearch.define_field(:name => 'user_defined_text_2', :type => :text, :visibility => [:staff], :solr_field => 'text_2_u_utext')
AdvancedSearch.define_field(:name => 'user_defined_text_3', :type => :text, :visibility => [:staff], :solr_field => 'text_3_u_utext')
Expand Down

0 comments on commit 608103e

Please sign in to comment.