From 138fdad90cc7aaf164873b8fec9c710b2388b5b3 Mon Sep 17 00:00:00 2001 From: Dylan Wagstaff Date: Tue, 13 Mar 2018 13:34:14 +1300 Subject: [PATCH] FIX Reenable indexing of relationship fields In previous versions one could add e.g. a filter field for their index to a relationship, such as 'Categories.ID' where categories is a many_many relationship. This stopped working in the SS4 upgrade. Namespaces, whoop. --- src/Search/Indexes/SearchIndex.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Search/Indexes/SearchIndex.php b/src/Search/Indexes/SearchIndex.php index bdc3878..e3cbb75 100644 --- a/src/Search/Indexes/SearchIndex.php +++ b/src/Search/Indexes/SearchIndex.php @@ -15,6 +15,7 @@ use SilverStripe\ORM\FieldType\DBField; use SilverStripe\ORM\FieldType\DBString; use SilverStripe\ORM\Queries\SQLSelect; use SilverStripe\View\ViewableData; +use SilverStripe\ORM\SS_List; /** * SearchIndex is the base index class. Each connector will provide a subclass of this that