Permalink
Browse files

Add default searchable_fields

  • Loading branch information...
1 parent d73b13a commit 425e68b22d1d76ee1d2582c55eee46812ded5636 @wilr wilr committed Feb 2, 2014
Showing with 10 additions and 0 deletions.
  1. +10 −0 code/model/DMSDocument.php
View
@@ -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
*

0 comments on commit 425e68b

Please sign in to comment.