include/SugarSearchEngine/Elastic/SugarSearchEngineElasticMapping.php
\SugarSearchEngineElasticMapping
Package: SugarCRM
Parameters
Returns
Parameters
Returns
Module mapping for Elastica
Properties
Methods
constructMappingProperties(
\$fieldDefs $fieldDefs
)
:
\an
This function returns an array of properties given a field definition array.
Parameters
Returns
Name | Type | Description |
---|---|---|
$fieldDefs | \$fieldDefs | array of field definitions |
Type | Description |
---|---|
\an | array of properties |
setFieldMapping(
\$module $module, \$fieldDefs $fieldDefs
)
:
boolean
This function creates the mapping on particular type/module and field.
Ths can be used when user changes the field settings (like boost level) in Studio. index must exist before calling this function.
Name | Type | Description |
---|---|---|
$module | \$module | module name |
$fieldDefs | \$fieldDefs | field name of the module |
Type | Description |
---|---|
boolean | true if mapping successfully created, false otherwise |
setFullMapping(
)
:
void
This function creates a full mapping for all modules.
index must exist before calling this function.
setModuleMapping(
\$module $module
)
:
boolean
This function creates the mapping for particular module/type.
index must exist before calling this function.
Name | Type | Description |
---|---|---|
$module | \$module | module name |
Type | Description |
---|---|
boolean | true if mapping successfully created, false otherwise |