SilverStripe\FullTextSearch\Search\FullTextSearch
Base class to manage active search indexes.
Synopsis
class FullTextSearch
{
- // members
- protected static $all_indexes = NULL;
- protected static array $indexes_by_subclass = ;
- private static array $indexes = ;
- // methods
- public static void get_indexes()
- public static void force_index_list()
Members
private
- $indexes
—
array
Optional list of index names to limit to. If left empty, all subclasses of SearchIndex will be used
protected
- $all_indexes
- $indexes_by_subclass
Methods
public
- force_index_list() — Sometimes, like when in tests, you want to restrain the actual indexes to a subset
- get_indexes() — Get all the instantiable search indexes (so all the user created indexes, but not the connector or library level abstract indexes). Can optionally be filtered to only return indexes that are subclasses of some class