From 425e68b22d1d76ee1d2582c55eee46812ded5636 Mon Sep 17 00:00:00 2001 From: Will Rossiter Date: Mon, 3 Feb 2014 11:54:34 +1300 Subject: [PATCH] Add default searchable_fields --- code/model/DMSDocument.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/model/DMSDocument.php b/code/model/DMSDocument.php index f60f731..2f5cb17 100644 --- a/code/model/DMSDocument.php +++ b/code/model/DMSDocument.php @@ -41,6 +41,16 @@ class DMSDocument extends DataObject implements DMSDocumentInterface { private static $plural_name = 'Documents'; + private static $searchable_fields = array( + 'ID' => array( + 'filter' => 'ExactMatchFilter', + 'field' => 'NumericField' + ), + 'Title', + 'Filename', + 'LastChanged' + ); + /** * @param Member $member *