MediaWiki  master
NullIndexField.php
Go to the documentation of this file.
1 <?php
2 
6 class NullIndexField implements SearchIndexField {
7 
13  public function getMapping( SearchEngine $engine ) {
14  return null;
15  }
16 
24  public function setFlag( $flag, $unset = false ) {
25  return $this;
26  }
27 
33  public function checkFlag( $flag ) {
34  return 0;
35  }
36 
43  public function merge( SearchIndexField $that ) {
44  return $that;
45  }
46 
50  public function getEngineHints( SearchEngine $engine ) {
51  return [];
52  }
53 }
NullIndexField\getMapping
getMapping(SearchEngine $engine)
Get mapping for specific search engine.
Definition: NullIndexField.php:13
NullIndexField\merge
merge(SearchIndexField $that)
Merge two field definitions if possible.
Definition: NullIndexField.php:43
NullIndexField\checkFlag
checkFlag( $flag)
Check if flag is set.
Definition: NullIndexField.php:33
NullIndexField\getEngineHints
getEngineHints(SearchEngine $engine)
A list of search engine hints for this field.Hints are usually specific to a search engine implementa...
Definition: NullIndexField.php:50
NullIndexField\setFlag
setFlag( $flag, $unset=false)
Set global flag for this field.
Definition: NullIndexField.php:24
SearchEngine
Contain a class for special pages.
Definition: SearchEngine.php:37
NullIndexField
Null index field - means search engine does not implement this field.
Definition: NullIndexField.php:6
SearchIndexField
Definition of a mapping for the search index field.
Definition: SearchIndexField.php:7