private function getMultiFieldMappingPropertyConfig($analyzers)
    {
        // Setting the field type to "multi_field".
        $property = [];

        foreach ($analyzers as $analyzer) {
            if ($analyzer == $this->getDefaultSearchAnalyzer()) {
                $property = array_merge($property, $this->getPropertyConfig($analyzer));
            } else {
                $property['fields'][$analyzer] = $this->getPropertyConfig($analyzer);
            }
        }

        return $property;
    }
private function getMultiFieldMappingPropertyConfig($analyzers)
    {
        // Setting the field type to "multi_field".
        $property = [];

        foreach ($analyzers as $analyzer) {
            if ($analyzer == $this->getDefaultSearchAnalyzer()) {
                $property = array_merge($property, $this->getPropertyConfig($analyzer));
            } else {
                $property['fields'][$analyzer] = $this->getPropertyConfig($analyzer);
            }
        }

        return $property;
    }
private function getMultiFieldMappingPropertyConfig ( $ analyzers ) { // Setting the field type to "multi_field". $ property = [ ] ; foreach ( $ analyzers as $ analyzer ) { if ( $ analyzer == $ this -> getDefaultSearchAnalyzer ( ) ) { $ property = array_merge ( $ property , $ this -> getPropertyConfig ( $ analyzer ) ) ; } else { $ property [ 'fields' ] [ $ analyzer ] = $ this -> getPropertyConfig ( $ analyzer ) ; } } return $ property ; }
Build a multi_field configuration from an analyzers list.
Standard analyzer is used as default subfield and should always be present.

If the standard analyzer is not present, no default subfield is defined.

@param array $analyzers List of analyzers used as subfields.

@SuppressWarnings(PHPMD.ElseExpression)

@return array
Build a multi_field configuration from an analyzers list . Standard analyzer is used as default subfield and should always be present .