SilverStripe\FullTextSearch\Tests\BatchedProcessorTest\BatchedProcessorTest_Index
Synopsis
class BatchedProcessorTest_Index
extends SearchIndex_Recording
implements
TestOnly
{
- // Inherited members from SearchIndex_Recording
- public array $added;
- public array $deleted;
- public boolean $committed;
- // Inherited members from SearchIndex
- protected array $classes;
- protected array $fulltextFields;
- public array $filterFields;
- protected array $sortFields;
- protected array $excludedVariantStates;
- public array $dependancyList;
- public $derivedFields;
- // methods
- public void init()
- // Inherited methods from SearchIndex_Recording
- public void reset()
- public void add()
- public void getAdded()
- public void delete()
- public void commit()
- public void getIndexName()
- public void getIsCommitted()
- public void getService()
- // Inherited methods from SearchIndex
- protected string getSourceName()
- public void __construct()
- public void __toString()
- public void fieldData()
- public void addClass()
- public void getClasses()
- public void addFulltextField()
- public void getFulltextFields()
- public void addFilterField()
- public void getFilterFields()
- public void addSortField()
- public void getSortFields()
- public void addAllFulltextFields()
- public MultipleArrayIterator getFieldsIterator()
- public void excludeVariantState()
- public void variantStateExcluded()
- public void buildDependancyList()
- public void getDerivedFields()
- public string getDocumentIDForState()
- public string getDocumentID()
- protected mixed _getFieldValue()
- public static void warn()
- public array getDirtyIDs()
- public abstract void add()
- public abstract void delete()
- public abstract void commit()
- public abstract void init()
Hierarchy
Extends
Implements
- SilverStripe\Dev\TestOnly
Members
protected
-
$classes
Public, but should only be altered by variants - $excludedVariantStates
- $fulltextFields
- $sortFields
public
- $added
- $committed
- $deleted
- $dependancyList
- $derivedFields
- $filterFields
Methods
public
Inherited from SilverStripe\FullTextSearch\Search\Indexes\SearchIndex_Recording
public
Inherited from SilverStripe\FullTextSearch\Search\Indexes\SearchIndex
protected
- _getFieldValue() — Given an object and a field definition (as returned by fieldData) get the current value of that field on that object
- getSourceName() — This is used to clean the source name from suffix suffixes are needed to support multiple relations with the same name on different page types
public
- __toString()
- add() — !! These should be implemented by the full text search engine
- addAllFulltextFields() — Add all database-backed text fields as fulltext searchable fields.
- addClass() — Add a DataObject subclass whose instances should be included in this index
- addFilterField() — Add a field that should be filterable
- addFulltextField() — Add a field that should be fulltext searchable
- addSortField() — Add a field that should be sortable
- buildDependancyList()
- commit()
- delete()
- excludeVariantState()
- fieldData() — Examines the classes this index is built on to try and find defined fields in the class hierarchy for those classes.
- getClasses() — Get the classes added by addClass
- getDerivedFields() — Returns an array where each member is all the fields and the classes that are at the end of some specific lookup chain from one of the base classes
- getDirtyIDs() — Given a class, object id, set of stateful ids and a list of changed fields (in a special format), return what statefulids need updating in this index
- getDocumentID() — Get the "document ID" (a database & variant unique id) given some "Base" class and DataObject
- getDocumentIDForState() — Get the "document ID" (a database & variant unique id) given some "Base" class, DataObject ID and state array
- getFieldsIterator() — Returns an interator that will let you interate through all added fields, regardless of whether they were added as fulltext, filter or sort fields.
- getFilterFields()
- getFulltextFields()
- getSortFields()
- init() — Called during construction, this is the method that builds the structure.
- variantStateExcluded() — Returns true if some variant state should be ignored
- warn() — Log non-fatal errors