src/Kunstmaan/NodeSearchBundle/Configuration/NodePagesConfiguration.php
protected function setMapping(Index $index, $lang = 'en')
    {
        $mapping = $this->createDefaultSearchFieldsMapping($index, $lang);
        $mapping->send();
        $index->refresh();
    }
protected function setMapping(Index $index, $lang = 'en')
    {
        $mapping = $this->createDefaultSearchFieldsMapping($index, $lang);
        $mapping->send();
        $index->refresh();
    }
protected function setMapping ( Index $ index , $ lang = 'en' ) { $ mapping = $ this -> createDefaultSearchFieldsMapping ( $ index , $ lang ) ; $ mapping -> send ( ) ; $ index -> refresh ( ) ; }
Initialize the index with the default search fields mapping

@param Index  $index
@param string $lang
Initialize the index with the default search fields mapping