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 }
getEngineHints(SearchEngine $engine)
A list of search engine hints for this field.Hints are usually specific to a search engine implementa...
Null index field - means search engine does not implement this field.
setFlag( $flag, $unset=false)
Set global flag for this field.
checkFlag( $flag)
Check if flag is set.
getMapping(SearchEngine $engine)
Get mapping for specific search engine.
merge(SearchIndexField $that)
Merge two field definitions if possible.
Definition of a mapping for the search index field.