private function getAnalysisNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('analysis');

        $node
            ->info('Defines analyzers, normalizers, tokenizers and filters')
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('tokenizer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('filter')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('analyzer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('normalizer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('char_filter')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
            ->end();

        return $node;
    }
private function getAnalysisNode()
    {
        $builder = new TreeBuilder();
        $node = $builder->root('analysis');

        $node
            ->info('Defines analyzers, normalizers, tokenizers and filters')
            ->addDefaultsIfNotSet()
            ->children()
                ->arrayNode('tokenizer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('filter')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('analyzer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('normalizer')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
                ->arrayNode('char_filter')
                    ->defaultValue([])
                    ->prototype('variable')->end()
                ->end()
            ->end();

        return $node;
    }
private function getAnalysisNode ( ) { $ builder = new TreeBuilder ( ) ; $ node = $ builder -> root ( 'analysis' ) ; $ node -> info ( 'Defines analyzers, normalizers, tokenizers and filters' ) -> addDefaultsIfNotSet ( ) -> children ( ) -> arrayNode ( 'tokenizer' ) -> defaultValue ( [ ] ) -> prototype ( 'variable' ) -> end ( ) -> end ( ) -> arrayNode ( 'filter' ) -> defaultValue ( [ ] ) -> prototype ( 'variable' ) -> end ( ) -> end ( ) -> arrayNode ( 'analyzer' ) -> defaultValue ( [ ] ) -> prototype ( 'variable' ) -> end ( ) -> end ( ) -> arrayNode ( 'normalizer' ) -> defaultValue ( [ ] ) -> prototype ( 'variable' ) -> end ( ) -> end ( ) -> arrayNode ( 'char_filter' ) -> defaultValue ( [ ] ) -> prototype ( 'variable' ) -> end ( ) -> end ( ) -> end ( ) ; return $ node ; }
Analysis configuration node.

@return \Symfony\Component\Config\Definition\Builder\NodeDefinition
Analysis configuration node .