Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Elastic\Indexer\Rollover Class Reference

Public Member Functions

 __construct (ElasticClient $connection)
 
 rollover ( $type, $version)
 
 update ( $type)
 
 delete ( $type)
 

Detailed Description

The index uses V1/V2 to switch between versions during a rebuild allowing the index to be available while a reindex is on going and after the process has been indices will be switched (aka rollover) without down time. The index uses aliases to hide the "real" identity of the current active index.

See also
https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\Indexer\Rollover::__construct ( ElasticClient  $connection)
Since
3.0
Parameters
ElasticClient$connection

Member Function Documentation

◆ delete()

SMW\Elastic\Indexer\Rollover::delete (   $type)
Since
3.0
Parameters
string$type
Exceptions
NoConnectionException

◆ rollover()

SMW\Elastic\Indexer\Rollover::rollover (   $type,
  $version 
)
Since
3.0
Parameters
string$type
string$version
Returns
string

◆ update()

SMW\Elastic\Indexer\Rollover::update (   $type)
Since
3.0
Parameters
string$type
Exceptions
NoConnectionException

The documentation for this class was generated from the following file:

About | General disclaimer | Privacy policy