From cd7ea01bd1871fa97d0f61d867494ad29baa2304 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 25 Sep 2012 12:31:50 +1200 Subject: [PATCH] FIXED: Minor adjustment to order of file fulltext search fields. By matching the order of these index columns to the same as the fields on the table itself, this will prevent the unnecessary regeneration of fulltext indexes on some database connectors each dev/build, notably MS SQL Server. --- search/FulltextSearchable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/FulltextSearchable.php b/search/FulltextSearchable.php index 7f7023574..3e7ec7f23 100644 --- a/search/FulltextSearchable.php +++ b/search/FulltextSearchable.php @@ -44,7 +44,7 @@ class FulltextSearchable extends DataExtension { public static function enable($searchableClasses = array('SiteTree', 'File')) { $defaultColumns = array( 'SiteTree' => '"Title","MenuTitle","Content","MetaTitle","MetaDescription","MetaKeywords"', - 'File' => '"Filename","Title","Content"' + 'File' => '"Title","Filename","Content"' ); if(!is_array($searchableClasses)) $searchableClasses = array($searchableClasses);