$searchParams = array(
'dynamicSearch' => array(
'dynamicClauses' => array(
'0' => array(
'attributeIndexOrDerivedType' => 'name',
'structurePosition' => 1,
'firstName' => "$v"
),
'1' => array(
'attributeIndexOrDerivedType' => 'name',
'structurePosition' => 2,
'lastName' => "$v"
),
'2' => array(
'attributeIndexOrDerivedType' => 'name',
'structurePosition' => 3,
'mobilePhone' => "$v"
),
'3' => array(
'attributeIndexOrDerivedType' => 'primaryEmail',
'structurePosition' => 4,
'primaryEmail' => array('emailAddress' => '$v')
),
),
'dynamicStructure' => '1 OR 2 OR 3 OR 4'
),
'sort' => 'lastName.asc',
);
since $v holds the search value. Jim will be found in firstname, lastname, email, or phone.










