MediaWiki
master
DummySearchIndexFieldDefinition.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Search
;
4
10
class
DummySearchIndexFieldDefinition
extends
SearchIndexFieldDefinition
{
11
17
public
function
getMapping
(
SearchEngine
$engine ) {
18
$mapping = [
19
'name'
=>
$this->name
,
20
'type'
=>
$this->type
,
21
'flags'
=>
$this->flags
,
22
'subfields'
=> []
23
];
24
25
foreach
( $this->subfields as $subfield ) {
26
$mapping[
'subfields'
][] = $subfield->getMapping( $engine );
27
}
28
29
return
$mapping;
30
}
31
32
}
33
35
class_alias( DummySearchIndexFieldDefinition::class,
'DummySearchIndexFieldDefinition'
);
MediaWiki\Search\DummySearchIndexFieldDefinition
Dummy implementation of SearchIndexFieldDefinition for testing purposes.
Definition
DummySearchIndexFieldDefinition.php:10
MediaWiki\Search\DummySearchIndexFieldDefinition\getMapping
getMapping(SearchEngine $engine)
Definition
DummySearchIndexFieldDefinition.php:17
MediaWiki\Search\SearchEngine
Contain a class for special pages.
Definition
SearchEngine.php:33
MediaWiki\Search\SearchIndexFieldDefinition
Basic infrastructure of the field definition.
Definition
SearchIndexFieldDefinition.php:14
MediaWiki\Search\SearchIndexFieldDefinition\$name
string $name
Name of the field.
Definition
SearchIndexFieldDefinition.php:21
MediaWiki\Search\SearchIndexFieldDefinition\$flags
int $flags
Bit flags for the field.
Definition
SearchIndexFieldDefinition.php:35
MediaWiki\Search\SearchIndexFieldDefinition\$type
string $type
Type of the field, one of the constants above.
Definition
SearchIndexFieldDefinition.php:28
MediaWiki\Search
Definition of a mapping for the search index field.
Definition
BaseSearchResultSet.php:3
includes
Search
DummySearchIndexFieldDefinition.php
Generated on Sat Jan 17 2026 22:50:41 for MediaWiki by
1.10.0