MediaWiki  master
DummySearchIndexFieldDefinition Class Reference

Dummy implementation of SearchIndexFieldDefinition for testing purposes. More...

Inheritance diagram for DummySearchIndexFieldDefinition:
Collaboration diagram for DummySearchIndexFieldDefinition:

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)
 A list of search engine hints for this field.Hints are usually specific to a search engine implementation and allow to fine control how the search engine will handle this particular field.For example some search engine permits some optimizations at index time by ignoring an update if the updated value does not change by more than X% on a numeric value.
Parameters
SearchEngine$engine
Returns
array an array of hints generally indexed by hint name. The type of values is search engine specific
Since
1.30
More...
 
 getIndexType ()
 Get index type. More...
 
 getMapping (SearchEngine $engine)
 
 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 = 'bool'
 
const INDEX_TYPE_DATETIME = 'datetime'
 
const INDEX_TYPE_INTEGER = 'integer'
 
const INDEX_TYPE_KEYWORD = 'keyword'
 KEYWORD fields are indexed without any processing, so are appropriate for e.g. More...
 
const INDEX_TYPE_NESTED = 'nested'
 
const INDEX_TYPE_NUMBER = 'number'
 
const INDEX_TYPE_SHORT_TEXT = 'short_text'
 SHORT_TEXT is meant to be used with short text made of mostly ascii technical information. More...
 
const INDEX_TYPE_TEXT = 'text'
 TEXT fields are suitable for natural language and may be subject to analysis such as stemming. 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...
 
string $type
 Type of the field, one of the constants above. More...
 

Detailed Description

Dummy implementation of SearchIndexFieldDefinition for testing purposes.

Since
1.28

Definition at line 8 of file DummySearchIndexFieldDefinition.php.

Member Function Documentation

◆ getMapping()

DummySearchIndexFieldDefinition::getMapping ( SearchEngine  $engine)

The documentation for this class was generated from the following file: