Skip to content

Commit

Permalink
Also reindex the source's own id
Browse files Browse the repository at this point in the history
  • Loading branch information
xhero committed Mar 26, 2024
1 parent da422ff commit 3460b1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def reindex
sunspot_dsl.text :source_rism_ids do |s|
all_ids = s.child_sources.pluck(:id)
all_ids << s.parent_source.id if s.parent_source
all_ids << s.id
all_ids += s.sources.pluck(:id)
all_ids += s.referring_sources.pluck(:id)

Expand Down

0 comments on commit 3460b1d

Please sign in to comment.