From 5a7193c7dac876372313682406538fd7cfdc9f9f Mon Sep 17 00:00:00 2001 From: Nicolaas Date: Thu, 19 Nov 2020 13:57:56 +1300 Subject: [PATCH] Update Link.php --- src/Models/Link.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/Models/Link.php b/src/Models/Link.php index d49aabc..536deab 100644 --- a/src/Models/Link.php +++ b/src/Models/Link.php @@ -67,7 +67,17 @@ class Link extends DataObject 'LinkType', 'LinkURL', ]; - + + /** + * @var array + */ + private static $searchable_fields = [ + 'Title' => 'PartialMatchFilter', + 'URL' => 'PartialMatchFilter', + 'Phone' => 'PartialMatchFilter', + 'Email' => 'PartialMatchFilter', + ]; + /** * A map of templates that are available for rendering * Link objects with