From 4b6b2f5dc79eaabe7882d0ab3c1de5fc9c373a5b Mon Sep 17 00:00:00 2001 From: DonHaul Date: Wed, 28 Aug 2024 15:35:42 +0200 Subject: [PATCH] backoffice: have all fields available in search * ref: cern-sis/issues-inspire/issues/xxx --- backoffice/backoffice/workflows/documents.py | 23 +------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/backoffice/backoffice/workflows/documents.py b/backoffice/backoffice/workflows/documents.py index 862b6e3a..e2240d15 100644 --- a/backoffice/backoffice/workflows/documents.py +++ b/backoffice/backoffice/workflows/documents.py @@ -9,28 +9,7 @@ class WorkflowDocument(Document): id = fields.TextField() workflow_type = fields.KeywordField() - data = fields.ObjectField( - properties={ - "ids": fields.ObjectField( - properties={ - "value": fields.KeywordField(), - "schema": fields.KeywordField(), - } - ), - "name": fields.ObjectField( - properties={ - "value": fields.TextField(), - "preferred_name": fields.TextField(), - } - ), - "email_address": fields.ObjectField( - properties={ - "value": fields.KeywordField(), - "current": fields.BooleanField(), - } - ), - } - ) + data = fields.ObjectField(dynamic=True) decisions = fields.NestedField( properties={