Skip to content

Commit

Permalink
YDA-5441 Only create flat index in vault deposit packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
dworkin committed Sep 28, 2023
1 parent af94ea2 commit 9b08ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from deepdiff import DeepDiff

import avu_json
import folder
import provenance
import publication
import schema as schema_
Expand Down Expand Up @@ -483,7 +484,7 @@ def ingest_metadata_vault(ctx, path):
data_package = row[0]

# Update flat index metadata for OpenSearch.
if config.enable_open_search:
if config.enable_open_search and folder.collection_group_name(ctx, coll).startswith("deposit-"):
update_index_metadata(ctx, coll + "/index", metadata, creation_time, data_package)

# Remove any remaining legacy XML-style AVUs.
Expand Down

0 comments on commit 9b08ac9

Please sign in to comment.