MediaWiki master
StringPrefixSearch.php
Go to the documentation of this file.
1<?php
9namespace MediaWiki\Search;
10
12
19
24 protected function titles( array $titles ) {
25 return array_map( static function ( Title $t ) {
26 return $t->getPrefixedText();
27 }, $titles );
28 }
29
34 protected function strings( array $strings ) {
35 return $strings;
36 }
37}
38
40class_alias( StringPrefixSearch::class, 'StringPrefixSearch' );
Handles searching prefixes of titles and finding any page names that match.
Performs prefix search, returning strings.
Represents a title within MediaWiki.
Definition Title.php:69
Definition of a mapping for the search index field.