Skip to content

Commit

Permalink
fix: when backfilling an index, don't delete other indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Feb 21, 2025
1 parent a9204f3 commit f4b67bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion share/search/index_strategy/trovesearch_denorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,9 @@ def task__delete_iri_value_scraps(
_index.full_index_name
for _index in _index_strategy.each_live_index(any_strategy_check=True)
if _index.subname == 'iri_values'
}
}.intersection(indexnames)
if not _irivalue_indexnames:
return
# delete any docs that belong to cards in this chunk but weren't touched by indexing
_delete_resp = _index_strategy.es8_client.delete_by_query(
index=list(_irivalue_indexnames),
Expand Down

0 comments on commit f4b67bc

Please sign in to comment.