Skip to content

Commit

Permalink
More Like This - Only suggest "published" items.
Browse files Browse the repository at this point in the history
Fixes #654
  • Loading branch information
ewlarson committed Feb 17, 2025
1 parent e92ccff commit 0291883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/solr_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def allmaps_georeferenceable?
def more_like_this_panel
solr = RSolr.connect(url: Blacklight.connection_config[:url])
solr_mlt_response = solr.get 'mlt', params: {
q: "id:#{self.id.gsub(':', '\\:')}",
q: "id:#{self.id.gsub(':', '\\:')}",
fq: "b1g_publication_state_s:published",
'mlt.fl': 'text',
rows: 10
}
Expand Down

0 comments on commit 0291883

Please sign in to comment.