Skip to content

Commit

Permalink
Merge pull request #5888 from avalonmediasystem/cjcolvar-patch-3
Browse files Browse the repository at this point in the history
Return all sections and all transcripts when generating hit count fields
  • Loading branch information
cjcolvar authored Jul 2, 2024
2 parents 3f41331 + 8fcae0f commit 7bfed96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/search_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def term_frequency_counts(solr_parameters)
fl << "sections:[subquery]"
solr_parameters["sections.q"] = "{!terms f=isPartOf_ssim v=$row.id}"
solr_parameters["sections.defType"] = "lucene"
solr_parameters["sections.rows"] = 1_000_000
sections_fl = ['id']
transcripts_fl = ['id'] if transcripts_present

Expand All @@ -89,6 +90,7 @@ def term_frequency_counts(solr_parameters)
solr_parameters["sections.fl"] = sections_fl.join(',')
solr_parameters["sections.transcripts.fl"] = transcripts_fl.join(',')
solr_parameters["sections.transcripts.defType"] = "lucene"
solr_parameters["sections.transcripts.rows"] = 1_000_000
solr_parameters["sections.transcripts.q"] = "{!terms f=isPartOf_ssim v=$row.id}{!join to=id from=isPartOf_ssim}"
end
end

0 comments on commit 7bfed96

Please sign in to comment.