CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\MetaStore\MetaNamespaceStore Class Reference
+ Inheritance diagram for CirrusSearch\MetaStore\MetaNamespaceStore:
+ Collaboration diagram for CirrusSearch\MetaStore\MetaNamespaceStore:

Public Member Functions

 __construct (Index $index, $wikiId=null)
 
 buildIndexProperties ()
 
 reindex (Language $lang)
 Delete and re-index all namespaces for current wiki.
 
 find ( $name, array $queryOptions=[])
 Find namespaces on the current wiki very similar to $name.
 

Static Public Member Functions

static docId ( $wikiId, $nsId)
 

Public Attributes

const METASTORE_TYPE = 'namespace'
 @const Value of metastore 'type' field for our documents
 

Member Function Documentation

◆ buildIndexProperties()

CirrusSearch\MetaStore\MetaNamespaceStore::buildIndexProperties ( )
Returns
array Custom field mappings for metastore index

Implements CirrusSearch\MetaStore\MetaStore.

◆ docId()

static CirrusSearch\MetaStore\MetaNamespaceStore::docId ( $wikiId,
$nsId )
static
Parameters
string$wikiIdWiki namespace belongs to
int$nsIdId of the namespace
Returns
string Metastore document id

◆ find()

CirrusSearch\MetaStore\MetaNamespaceStore::find ( $name,
array $queryOptions = [] )

Find namespaces on the current wiki very similar to $name.

Invoking from a user request must be gated on a PoolCounter.

Parameters
string$nameNamespace to search for
array$queryOptionsQuery parameters to send to elasticsearch
Returns
\Elastica\ResultSet

◆ reindex()

CirrusSearch\MetaStore\MetaNamespaceStore::reindex ( Language $lang)

Delete and re-index all namespaces for current wiki.

Parameters
Language$langContent language of the wiki

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