From 9b08ac91200ec781710f0002cfd654b022f732c0 Mon Sep 17 00:00:00 2001 From: "Felix A. Croes" Date: Thu, 28 Sep 2023 12:18:02 +0200 Subject: [PATCH] YDA-5441 Only create flat index in vault deposit packages. --- meta.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta.py b/meta.py index 350c75dbb..9f192c30b 100644 --- a/meta.py +++ b/meta.py @@ -14,6 +14,7 @@ from deepdiff import DeepDiff import avu_json +import folder import provenance import publication import schema as schema_ @@ -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.