private function addProperty(array $properties, $propertyName, $propertyType, $analyzers = [])
    {
        $property = ['type' => $propertyType, 'analyzer' => FieldInterface::ANALYZER_STANDARD];

        foreach ($analyzers as $analyzer) {
            if ($analyzer !== FieldInterface::ANALYZER_STANDARD) {
                $property['fields'][$analyzer] = ['type' => $propertyType, 'analyzer' => $analyzer];
            }
        }

        $properties[$propertyName] = $property;

        return $properties;
    }
private function addProperty(array $properties, $propertyName, $propertyType, $analyzers = [])
    {
        $property = ['type' => $propertyType, 'analyzer' => FieldInterface::ANALYZER_STANDARD];

        foreach ($analyzers as $analyzer) {
            if ($analyzer !== FieldInterface::ANALYZER_STANDARD) {
                $property['fields'][$analyzer] = ['type' => $propertyType, 'analyzer' => $analyzer];
            }
        }

        $properties[$propertyName] = $property;

        return $properties;
    }
private function addProperty ( array $ properties , $ propertyName , $ propertyType , $ analyzers = [ ] ) { $ property = [ 'type' => $ propertyType , 'analyzer' => FieldInterface :: ANALYZER_STANDARD ] ; foreach ( $ analyzers as $ analyzer ) { if ( $ analyzer !== FieldInterface :: ANALYZER_STANDARD ) { $ property [ 'fields' ] [ $ analyzer ] = [ 'type' => $ propertyType , 'analyzer' => $ analyzer ] ; } } $ properties [ $ propertyName ] = $ property ; return $ properties ; }
Append a new properties into a properties list and returned the updated map.

@param array  $properties   Initial properties list.
@param string $propertyName New property name.
@param string $propertyType New property type.
@param array  $analyzers    Property analyzers.

@return array
Append a new properties into a properties list and returned the updated map .