Add default searchable_fields

This commit is contained in:
Will Rossiter 2014-02-03 11:54:34 +13:00
parent d73b13afd5
commit 425e68b22d
1 changed files with 10 additions and 0 deletions

View File

@ -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
*