MediaWiki master
NullIndexField.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Search;
4
9
15 public function getMapping( SearchEngine $engine ) {
16 return null;
17 }
18
26 public function setFlag( $flag, $unset = false ) {
27 return $this;
28 }
29
35 public function checkFlag( $flag ) {
36 return 0;
37 }
38
45 public function merge( SearchIndexField $that ) {
46 return $that;
47 }
48
52 public function getEngineHints( SearchEngine $engine ) {
53 return [];
54 }
55}
56
58class_alias( NullIndexField::class, 'NullIndexField' );
Null index field - means search engine does not implement this field.
getMapping(SearchEngine $engine)
Get mapping for specific search engine.
merge(SearchIndexField $that)
Merge two field definitions if possible.
setFlag( $flag, $unset=false)
Set global flag for this field.
getEngineHints(SearchEngine $engine)
A list of search engine hints for this field.Hints are usually specific to a search engine implementa...
checkFlag( $flag)
Check if flag is set.
Contain a class for special pages.
Definition of a mapping for the search index field.