MediaWiki
1.30.0
|
Dummy implementation of SearchIndexFieldDefinition for testing purposes. More...
Public Member Functions | |
getMapping (SearchEngine $engine) | |
Public Member Functions inherited from SearchIndexFieldDefinition | |
__construct ( $name, $type) | |
checkFlag ( $flag) | |
Check if flag is set. More... | |
getEngineHints (SearchEngine $engine) | |
@inheritDoc More... | |
getIndexType () | |
Get index type. More... | |
getName () | |
Get field name. More... | |
getSubfields () | |
Get subfields. More... | |
merge (SearchIndexField $that) | |
Merge two field definitions if possible. More... | |
setFlag ( $flag, $unset=false) | |
Set global flag for this field. More... | |
setMergeCallback ( $callback) | |
Set field-specific merge strategy. More... | |
setSubfields (array $subfields) | |
Set subfields. More... | |
Additional Inherited Members | |
Public Attributes inherited from SearchIndexField | |
const | FLAG_CASEFOLD = 1 |
Generic field flags. More... | |
const | FLAG_NO_HIGHLIGHT = 4 |
This field does not need highlight handling. More... | |
const | FLAG_NO_INDEX = 8 |
Do not index this field, just store it. More... | |
const | FLAG_SCORING = 2 |
This field contains secondary information, which is already present in other fields, but can be used for scoring. More... | |
const | INDEX_TYPE_BOOL = 6 |
const | INDEX_TYPE_DATETIME = 4 |
const | INDEX_TYPE_INTEGER = 2 |
const | INDEX_TYPE_KEYWORD = 1 |
const | INDEX_TYPE_NESTED = 5 |
const | INDEX_TYPE_NUMBER = 3 |
const | INDEX_TYPE_SHORT_TEXT = 7 |
SHORT_TEXT is meant to be used with short text made of mostly ascii technical information. More... | |
const | INDEX_TYPE_TEXT = 0 |
Field types. More... | |
Protected Attributes inherited from SearchIndexFieldDefinition | |
int | $flags = 0 |
Bit flags for the field. More... | |
string | $name |
Name of the field. More... | |
SearchIndexFieldDefinition[] | $subfields = [] |
Subfields. More... | |
int | $type |
Type of the field, one of the constants above. More... | |
Dummy implementation of SearchIndexFieldDefinition for testing purposes.
Definition at line 8 of file DummySearchIndexFieldDefinition.php.
DummySearchIndexFieldDefinition::getMapping | ( | SearchEngine | $engine | ) |
SearchEngine | $engine |
Reimplemented from SearchIndexFieldDefinition.
Definition at line 15 of file DummySearchIndexFieldDefinition.php.
References $engine, SearchIndexFieldDefinition\$flags, SearchIndexFieldDefinition\$name, SearchIndexFieldDefinition\$type, and as.