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

Public Member Functions

 __construct (Store $store, Bulk $bulk)
 
 setVersions (array $versions)
 
 setOrigin ( $origin)
 
 getId (DIWikiPage $dataItem)
 
 isAccessible ()
 
 isRebuild ( $isRebuild=true)
 
 getConnection ()
 
 getIndexName ( $type)
 
 delete (array $idList, $isConcept=false)
 
 create (DIWikiPage $dataItem, array $data=[])
 
 fetchNativeData ( $id)
 
 indexDocument (Document $document, $type=self::REQUIRE_SAFE_REPLICATION)
 

Public Attributes

const REQUIRE_SAFE_REPLICATION = 'replication/safe'
 

Detailed Description

GNU GPL v2+

Since
3.0
Author
mwjames

Constructor & Destructor Documentation

◆ __construct()

SMW\Elastic\Indexer\Indexer::__construct ( Store  $store,
Bulk  $bulk 
)
Since
3.0
Parameters
Store$store
Bulk$bulk

Member Function Documentation

◆ create()

SMW\Elastic\Indexer\Indexer::create ( DIWikiPage  $dataItem,
array  $data = [] 
)
Since
3.0
Parameters
DIWikiPage$dataItem
array$data

◆ delete()

SMW\Elastic\Indexer\Indexer::delete ( array  $idList,
  $isConcept = false 
)
Since
3.0
Parameters
array$idList

◆ fetchNativeData()

SMW\Elastic\Indexer\Indexer::fetchNativeData (   $id)
Since
3.0
Parameters
DIWikiPage | Title | integer$id
Returns
string

◆ getConnection()

SMW\Elastic\Indexer\Indexer::getConnection ( )
Since
3.0
Returns
Client

◆ getId()

SMW\Elastic\Indexer\Indexer::getId ( DIWikiPage  $dataItem)
Since
3.0
Parameters
string$type
Returns
string

◆ getIndexName()

SMW\Elastic\Indexer\Indexer::getIndexName (   $type)
Since
3.0
Parameters
string$type
Returns
string

◆ indexDocument()

SMW\Elastic\Indexer\Indexer::indexDocument ( Document  $document,
  $type = self::REQUIRE_SAFE_REPLICATION 
)
Since
3.2
Parameters
Document$document
string$type

◆ isAccessible()

SMW\Elastic\Indexer\Indexer::isAccessible ( )
Since
3.0
Returns
boolean

◆ isRebuild()

SMW\Elastic\Indexer\Indexer::isRebuild (   $isRebuild = true)
Since
3.0
Parameters
boolean$isRebuild

◆ setOrigin()

SMW\Elastic\Indexer\Indexer::setOrigin (   $origin)
Since
3.0
Parameters
string$origin

◆ setVersions()

SMW\Elastic\Indexer\Indexer::setVersions ( array  $versions)
Since
3.0
Parameters
[]$versions

Member Data Documentation

◆ REQUIRE_SAFE_REPLICATION

const SMW\Elastic\Indexer\Indexer::REQUIRE_SAFE_REPLICATION = 'replication/safe'

Whether safe replication is required during the indexing process or not.


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

About | General disclaimer | Privacy policy