Symbiote\ElasticSearch\ExtensibleElasticService
- Author: marcus
Synopsis
class ExtensibleElasticService
extends ElasticaService
{
- // members
- protected map $queryBuilders = ;
- protected boolean $buffered = false;
- protected array $buffer = ;
- public LoggerInterface $logger;
- protected $customIndexName;
- // methods
- public void __construct()
- public void getIndex()
- public void setIndexName()
- public array getIndexedClasses()
- public ResultList query()
- public void isConnected()
- public array getQueryBuilders()
- public ElasticaQueryBuilder getQueryBuilder()
- public void getAllSearchableFieldsFor()
- public void getIndexFieldName()
- public void getSortFieldName()
- public void index()
- public void startBulkIndex()
- public void endBulkIndex()
Hierarchy
Extends
- Heyday\Elastica\ElasticaService
Members
protected
- $buffer
- $buffered
-
$customIndexName
Overrides the parent indexName property so that we can change the index based on the search / indexing context. - $queryBuilders
—
Symbiote\ElasticSearch\map
A mapping of all the available query builders
public
- $logger — Psr\Log\LoggerInterface
Methods
public
- __construct() — ElasticaService constructor.
- endBulkIndex() — Ends the current bulk index operation and indexes the buffered documents.
- getAllSearchableFieldsFor() — Get all fields the particular class type can be searched on
- getIndex() — Override as parent class uses a private var
- getIndexFieldName()
- getIndexedClasses() — Gets the classes which are indexed (i.e. have the extension applied).
- getQueryBuilder() — Gets the query builder for the given search type
- getQueryBuilders() — Gets the list of query parsers available
- getSortFieldName()
- index()
- isConnected()
- query() — Queries the elastic index using an elastic query, mapped as an array
- setIndexName()
- startBulkIndex() — Begins a bulk indexing operation where documents are buffered rather than indexed immediately.