|
| __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 | docId ( $wikiId, $nsId) |
|
|
const | METASTORE_TYPE = 'namespace' |
| @const Value of metastore 'type' field for our documents
|
|
◆ buildIndexProperties()
CirrusSearch\MetaStore\MetaNamespaceStore::buildIndexProperties |
( |
| ) |
|
◆ docId()
static CirrusSearch\MetaStore\MetaNamespaceStore::docId |
( |
| $wikiId, |
|
|
| $nsId ) |
|
static |
- Parameters
-
string | $wikiId | Wiki namespace belongs to |
int | $nsId | Id 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 | $name | Namespace to search for |
array | $queryOptions | Query 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 | $lang | Content language of the wiki |
The documentation for this class was generated from the following file:
- includes/MetaStore/MetaNamespaceStore.php