src/Kunstmaan/NodeSearchBundle/Configuration/NodePagesConfiguration.php
public function setAnalysis(Index $index, AnalysisFactoryInterface $analysis)
    {
        $index->create(
            array(
                'number_of_shards' => $this->numberOfShards,
                'number_of_replicas' => $this->numberOfReplicas,
                'analysis' => $analysis->build(),
            )
        );
    }
public function setAnalysis(Index $index, AnalysisFactoryInterface $analysis)
    {
        $index->create(
            array(
                'number_of_shards' => $this->numberOfShards,
                'number_of_replicas' => $this->numberOfReplicas,
                'analysis' => $analysis->build(),
            )
        );
    }
public function setAnalysis ( Index $ index , AnalysisFactoryInterface $ analysis ) { $ index -> create ( array ( 'number_of_shards' => $ this -> numberOfShards , 'number_of_replicas' => $ this -> numberOfReplicas , 'analysis' => $ analysis -> build ( ) , ) ) ; }
Apply the analysis factory to the index

@param Index                    $index
@param AnalysisFactoryInterface $analysis
Apply the analysis factory to the index