Basic ElasticSearch index field.
More...
|
static | addIndexingHints (Document $doc, $fieldName, array $hints) |
| Inspect SearchIndexField::getEngineHints() for indexing hints and forward them to special metadata in the document.
|
|
static | addNoopHandler (\Elastica\Param $doc, $field, $handler) |
| Add a special metadata to $doc to control the noop_script.
|
|
static | getHint (\Elastica\Param $doc, $hint) |
| Get the hint named $hint.
|
|
static | setHint (\Elastica\Param $doc, $hint, $value) |
| Set the hint named $hint.
|
|
static | resetHints (Param $doc) |
| Clear all hints.
|
|
|
const | DOC_HINT_PARAM = '_cirrus_hints' |
| Name of the param on \Elastica\Document that contains hints about the noop_script handlers.
|
|
const | MULTILIST_HANDLER = 'multilist' |
| name of the noop handler for multilist
|
|
const | MULTILIST_DELETE_GROUPING = '__DELETE_GROUPING__' |
| magic word to instruct the noop plugin to cleanup a particular multilist group
|
|
const | NOOP_HINT = 'noop' |
| Name of the hint as returned by SearchIndexField::getEngineHints()
|
|
|
| $typeName = 'unknown' |
|
| $config |
|
| $mappingFlags |
|
Basic ElasticSearch index field.
- Since
- 1.28
◆ __construct()
CirrusSearch\Search\CirrusIndexField::__construct |
( |
| $name, |
|
|
| $type, |
|
|
SearchConfig | $config ) |
◆ addIndexingHints()
static CirrusSearch\Search\CirrusIndexField::addIndexingHints |
( |
Document | $doc, |
|
|
| $fieldName, |
|
|
array | $hints ) |
|
static |
Inspect SearchIndexField::getEngineHints() for indexing hints and forward them to special metadata in the document.
- Parameters
-
Document | $doc | |
string | $fieldName | |
array | $hints | |
◆ addNoopHandler()
static CirrusSearch\Search\CirrusIndexField::addNoopHandler |
( |
\Elastica\Param | $doc, |
|
|
| $field, |
|
|
| $handler ) |
|
static |
Add a special metadata to $doc to control the noop_script.
- Parameters
-
\Elastica\Param | $doc | |
string | $field | |
string | array | $handler | the handler as understood by the super_noop_script |
◆ getHint()
static CirrusSearch\Search\CirrusIndexField::getHint |
( |
\Elastica\Param | $doc, |
|
|
| $hint ) |
|
static |
Get the hint named $hint.
- Parameters
-
\Elastica\Param | $doc | |
string | $hint | name of the hint |
- Returns
- mixed|null the hint value or null if inexistent
◆ getMapping()
CirrusSearch\Search\CirrusIndexField::getMapping |
( |
SearchEngine | $engine | ) |
|
◆ resetHints()
static CirrusSearch\Search\CirrusIndexField::resetHints |
( |
Param | $doc | ) |
|
|
static |
Clear all hints.
- Parameters
-
◆ setHint()
static CirrusSearch\Search\CirrusIndexField::setHint |
( |
\Elastica\Param | $doc, |
|
|
| $hint, |
|
|
| $value ) |
|
static |
Set the hint named $hint.
- Parameters
-
\Elastica\Param | $doc | |
string | $hint | name of the hint |
mixed | $value | the hint value |
◆ setMappingFlags()
CirrusSearch\Search\CirrusIndexField::setMappingFlags |
( |
| $flags | ) |
|
Set flags for specific mapping.
- Parameters
-
- Returns
- self
The documentation for this class was generated from the following file:
- includes/Search/CirrusIndexField.php