include/SugarSearchEngine/Elastic/SugarSearchEngineElasticMapping.php

Show: inherited
Table of Contents

\SugarSearchEngineElasticMapping

Package: SugarCRM

Module mapping for Elastica

Properties

Propertyprivate\SugarSearchEngineElastic  $sse= ''

Methods

methodpublic__construct(  $sse ) : void

Parameters
Name Type Description
$sse
methodprotectedconstructMappingProperties( \$fieldDefs $fieldDefs ) : \an

This function returns an array of properties given a field definition array.

Parameters
Name Type Description
$fieldDefs \$fieldDefs

array of field definitions

Returns
Type Description
\an array of properties
methodpublicsetFieldMapping( \$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.

Parameters
Name Type Description
$module \$module

module name

$fieldDefs \$fieldDefs

field name of the module

Returns
Type Description
boolean true if mapping successfully created, false otherwise
methodpublicsetFullMapping( ) : void

This function creates a full mapping for all modules.

index must exist before calling this function.

methodpublicsetModuleMapping( \$module $module ) : boolean

This function creates the mapping for particular module/type.

index must exist before calling this function.

Parameters
Name Type Description
$module \$module

module name

Returns
Type Description
boolean true if mapping successfully created, false otherwise
Documentation was generated by DocBlox 0.18.1.