private function getAnalysisNodeConfiguration($type, $analyzer, $analysisConfig, $container = [])
    {
        if (isset($analyzer[$type])) {
            if (is_array($analyzer[$type])) {
                foreach ($analyzer[$type] as $filter) {
                    if (isset($analysisConfig[$type][$filter])) {
                        $container[$filter] = $analysisConfig[$type][$filter];
                    }
                }
            } else {
                if (isset($analysisConfig[$type][$analyzer[$type]])) {
                    $container[$analyzer[$type]] = $analysisConfig[$type][$analyzer[$type]];
                }
            }
        }
        return $container;
    }
private function getAnalysisNodeConfiguration($type, $analyzer, $analysisConfig, $container = [])
    {
        if (isset($analyzer[$type])) {
            if (is_array($analyzer[$type])) {
                foreach ($analyzer[$type] as $filter) {
                    if (isset($analysisConfig[$type][$filter])) {
                        $container[$filter] = $analysisConfig[$type][$filter];
                    }
                }
            } else {
                if (isset($analysisConfig[$type][$analyzer[$type]])) {
                    $container[$analyzer[$type]] = $analysisConfig[$type][$analyzer[$type]];
                }
            }
        }
        return $container;
    }
private function getAnalysisNodeConfiguration ( $ type , $ analyzer , $ analysisConfig , $ container = [ ] ) { if ( isset ( $ analyzer [ $ type ] ) ) { if ( is_array ( $ analyzer [ $ type ] ) ) { foreach ( $ analyzer [ $ type ] as $ filter ) { if ( isset ( $ analysisConfig [ $ type ] [ $ filter ] ) ) { $ container [ $ filter ] = $ analysisConfig [ $ type ] [ $ filter ] ; } } } else { if ( isset ( $ analysisConfig [ $ type ] [ $ analyzer [ $ type ] ] ) ) { $ container [ $ analyzer [ $ type ] ] = $ analysisConfig [ $ type ] [ $ analyzer [ $ type ] ] ; } } } return $ container ; }
Prepares analysis node content for Elasticsearch client.

@param string $type Node type: filter, tokenizer or char_filter
@param array $analyzer Analyzer from which used helpers will be extracted.
@param array $analysisConfig Pre configured analyzers container
@param array $container Current analysis container where prepared helpers will be appended.

@return array
Prepares analysis node content for Elasticsearch client .