SilverStripe\SearchService\Service\Indexer
Synopsis
class Indexer
{
- // constants
- const METHOD_DELETE = 0;
- const METHOD_ADD = 1;
- // members
- private static array $dependencies = ;
- private bool $finished = false;
- private array $chunks = ;
- private array $documents = ;
- private $batchSize;
- private $method;
- private bool $processDependencies = true;
- private bool $isComplete = false;
- // methods
- public void __construct()
- public void processNode()
- public $this setMethod()
- public int getMethod()
- public Indexer setProcessDependencies()
- public Indexer setBatchSize()
- public int getBatchSize()
- public bool finished()
- public int getChunkCount()
- public array getDocuments()
- public Indexer setDocuments()
- // Inherited methods from ConfigurationAware
- public $this setConfiguration()
- public IndexConfiguration getConfiguration()
- // Inherited methods from ServiceAware
- public IndexingInterface getIndexService()
- public $this setIndexService()
- public bool hasIndexService()
Hierarchy
Uses
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
- SilverStripe\SearchService\Service\Traits\ConfigurationAware
- SilverStripe\SearchService\Service\Traits\ServiceAware
Constants
Name | Value |
---|---|
METHOD_DELETE | 0 |
METHOD_ADD | 1 |
Members
private
- $batchSize — int
- $chunks — array
- $dependencies — array
- $documents — array
- $finished — SilverStripe\SearchService\Service\bool
- $isComplete — SilverStripe\SearchService\Service\bool
- $method — int
- $processDependencies — SilverStripe\SearchService\Service\bool
Methods
public
- __construct() — Indexer constructor.
- finished()
- getBatchSize()
- getChunkCount()
- getDocuments()
- getMethod()
- processNode()
- setBatchSize()
- setDocuments()
- setMethod()
- setProcessDependencies()