public function compileCompletion(Fluent $fluent)
    {
        $map = [
            'type'                => 'completion',
            'analyzer'            => $fluent->analyzer,
            'search_analyzer'     => $fluent->search_analyzer,
            'payloads'            => $fluent->payloads,
            'preserve_separators' => $fluent->preserve_separators,
            'max_input_length'    => $fluent->max_input_length,
        ];

        return $this->formatMap($map);
    }
public function compileCompletion(Fluent $fluent)
    {
        $map = [
            'type'                => 'completion',
            'analyzer'            => $fluent->analyzer,
            'search_analyzer'     => $fluent->search_analyzer,
            'payloads'            => $fluent->payloads,
            'preserve_separators' => $fluent->preserve_separators,
            'max_input_length'    => $fluent->max_input_length,
        ];

        return $this->formatMap($map);
    }
public function compileCompletion ( Fluent $ fluent ) { $ map = [ 'type' => 'completion' , 'analyzer' => $ fluent -> analyzer , 'search_analyzer' => $ fluent -> search_analyzer , 'payloads' => $ fluent -> payloads , 'preserve_separators' => $ fluent -> preserve_separators , 'max_input_length' => $ fluent -> max_input_length , ] ; return $ this -> formatMap ( $ map ) ; }
Compile a completion map.

@param Fluent $fluent

@return array
Compile a completion map .