Skip to content

Commit

Permalink
Merge pull request #379 from notch8/search-ocr-on-file-set-only
Browse files Browse the repository at this point in the history
🐛 Search OCR on file sets only
  • Loading branch information
kirkkwang authored Jan 27, 2025
2 parents acef382 + 3331911 commit 55cbaaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/iiif_print/iiif_search_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def solr_params
return { q: 'nil:nil' } unless q

{
q: "#{q} AND (#{iiif_config[:object_relation_field]}:\"#{parent_document.id}\" OR id:\"#{parent_document.id}\")",
q: "#{q} AND has_model_ssim:FileSet AND (#{iiif_config[:object_relation_field]}:\"#{parent_document.id}\" OR id:\"#{parent_document.id}\")",
rows: rows,
page: page
}
Expand Down

0 comments on commit 55cbaaf

Please sign in to comment.