Wikibase
MediaWiki Wikibase extension
|
Each field is intended to be used by the search engine as an additional property of a page. More...
Public Member Functions | |
getMappingField (SearchEngine $engine, $name) | |
Produce specific field mapping. More... | |
getFieldData (EntityDocument $entity) | |
Each field is intended to be used by the search engine as an additional property of a page.
The data returned by the field must match the field type defined in the mapping. (e.g. nested must be array, integer field must get an int, etc)
Wikibase\Repo\Search\Fields\WikibaseIndexField::getFieldData | ( | EntityDocument | $entity | ) |
EntityDocument | $entity |
Wikibase\Repo\Search\Fields\WikibaseIndexField::getMappingField | ( | SearchEngine | $engine, |
$name | |||
) |
Produce specific field mapping.
SearchEngine | $engine | |
string | $name |
Implemented in Wikibase\Repo\Search\Fields\WikibaseNumericField.