From 5719e23fdf81cf0adaa5a7826c4cbc67ef7638e9 Mon Sep 17 00:00:00 2001
From: Romain Courteaud <romain@nexedi.com>
Date: Thu, 16 Dec 2021 13:31:31 +0000
Subject: [PATCH] erp5_core: index workflow id in the full text table

---
 .../portal_types/Interaction%20Workflow.xml          | 12 ++++++++++++
 .../PortalTypeTemplateItem/portal_types/Workflow.xml | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Interaction%20Workflow.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Interaction%20Workflow.xml
index db36a2897a..63052593ea 100644
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Interaction%20Workflow.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Interaction%20Workflow.xml
@@ -46,6 +46,18 @@
             <key> <string>portal_type</string> </key>
             <value> <string>Base Type</string> </value>
         </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple>
+                <string>title</string>
+                <string>description</string>
+                <string>reference</string>
+                <string>short_title</string>
+                <string>id</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>type_class</string> </key>
             <value> <string>InteractionWorkflow</string> </value>
diff --git a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Workflow.xml b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Workflow.xml
index c1fa8d4c19..69984c60f0 100644
--- a/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Workflow.xml
+++ b/product/ERP5/bootstrap/erp5_core/PortalTypeTemplateItem/portal_types/Workflow.xml
@@ -75,6 +75,18 @@
               <none/>
             </value>
         </item>
+        <item>
+            <key> <string>searchable_text_property_id</string> </key>
+            <value>
+              <tuple>
+                <string>title</string>
+                <string>description</string>
+                <string>reference</string>
+                <string>short_title</string>
+                <string>id</string>
+              </tuple>
+            </value>
+        </item>
         <item>
             <key> <string>title</string> </key>
             <value> <string></string> </value>
-- 
2.30.9