MediaWiki REL1_32
SearchIndexField.php
Go to the documentation of this file.
1<?php
6interface SearchIndexField {
10 const INDEX_TYPE_TEXT = 0;
16 const INDEX_TYPE_BOOL = 6;
17
25
32 const FLAG_CASEFOLD = 1;
33
39 const FLAG_SCORING = 2;
40
45
49 const FLAG_NO_INDEX = 8;
50
56 public function getMapping( SearchEngine $engine );
57
65 public function setFlag( $flag, $unset = false );
66
72 public function checkFlag( $flag );
73
80 public function merge( SearchIndexField $that );
81
98}
Contain a class for special pages.
the value to return A Title object or null for latest all implement SearchIndexField $engine
Definition hooks.txt:2962
Definition of a mapping for the search index field.
merge(SearchIndexField $that)
Merge two field definitions if possible.
const FLAG_SCORING
This field contains secondary information, which is already present in other fields,...
setFlag( $flag, $unset=false)
Set global flag for this field.
const INDEX_TYPE_TEXT
Field types.
const INDEX_TYPE_SHORT_TEXT
SHORT_TEXT is meant to be used with short text made of mostly ascii technical information.
const FLAG_CASEFOLD
Generic field flags.
getEngineHints(SearchEngine $engine)
A list of search engine hints for this field.
getMapping(SearchEngine $engine)
Get mapping for specific search engine.
const FLAG_NO_HIGHLIGHT
This field does not need highlight handling.
const FLAG_NO_INDEX
Do not index this field, just store it.
checkFlag( $flag)
Check if flag is set.