Skip to content

Commit

Permalink
Merge pull request #1523 from projectblacklight/did-searchable-notes
Browse files Browse the repository at this point in the history
Add DID_SEARCHABLE_NOTES_FIELDS to text search
  • Loading branch information
corylown authored Mar 25, 2024
2 parents e217957 + a49ae6a commit d26cd8f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions lib/arclight/traject/ead2_component_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
end
DID_SEARCHABLE_NOTES_FIELDS.map do |selector|
to_field "#{selector}_html_tesm", extract_xpath("./did/#{selector}", to_text: false)
to_field "#{selector}_tesim", extract_xpath("./did/#{selector}")
end

# =============================
Expand Down
1 change: 1 addition & 0 deletions lib/arclight/traject/ead2_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@

DID_SEARCHABLE_NOTES_FIELDS.map do |selector|
to_field "#{selector}_html_tesm", extract_xpath("/ead/archdesc/did/#{selector}", to_text: false)
to_field "#{selector}_tesim", extract_xpath("/ead/archdesc/did/#{selector}")
end

NAME_ELEMENTS.map do |selector|
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ en:
fileplan: File plan
odd: Other descriptive data
note: Note
did_note: Note

access_subjects: Subjects
names_coll: Names
Expand Down
12 changes: 6 additions & 6 deletions solr/conf/schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,7 @@
<copyField source="access_subjects_ssim" dest="text" />
<copyField source="containers_ssim" dest="text" />

<!-- grab the searchable notes -->
<copyField source="abstract_tesim" dest="text" />
<!-- grab the searchable notes (SEARCHABLE_NOTES_FIELDS) -->
<copyField source="accessrestrict_tesim" dest="text" />
<copyField source="accruals_tesim" dest="text" />
<copyField source="acqinfo_tesim" dest="text" />
Expand All @@ -359,23 +358,24 @@
<copyField source="bibliography_tesim" dest="text" />
<copyField source="bioghist_tesim" dest="text" />
<copyField source="custodhist_tesim" dest="text" />
<copyField source="did_note_tesim" dest="text" />
<copyField source="fileplan_tesim" dest="text" />
<copyField source="indexes_tesim" dest="text" />
<copyField source="language_ssim" dest="text" />
<copyField source="materialspec_tesim" dest="text" />
<copyField source="note_tesim" dest="text" />
<copyField source="odd_tesim" dest="text" />
<copyField source="originalsloc_tesim" dest="text" />
<copyField source="parent_unittitles_tesim" dest="text" />
<copyField source="physdesc_tesim" dest="text" />
<copyField source="physloc_tesim" dest="text" />
<copyField source="phystech_tesim" dest="text" />
<copyField source="processinfo_tesim" dest="text" />
<copyField source="relatedmaterial_tesim" dest="text" />
<copyField source="scopecontent_tesim" dest="text" />
<copyField source="separatedmaterial_tesim" dest="text" />
<copyField source="userestrict_tesim" dest="text" />
<!-- did searchable notes (DID_SEARCHABLE_NOTES_FIELDS) -->
<copyField source="abstract_tesim" dest="text" />
<copyField source="materialspec_tesim" dest="text" />
<copyField source="physloc_tesim" dest="text" />
<copyField source="note_tesim" dest="text" />
<!-- grab structured data that's important -->
<copyField source="unitid_ssm" dest="text" />
<copyField source="unitid_ssm" dest="unitid_identifier_match" />
Expand Down

0 comments on commit d26cd8f

Please sign in to comment.