public static function refresh($index)
    {
        $index_prefix = Config::get('larasearch.elasticsearch.index_prefix', '');
        if ($index_prefix && !Str::startsWith($index, $index_prefix)) $index = $index_prefix . $index;

        return self::getClient()->indices()->refresh(['index' => $index]);
    }
public static function refresh($index)
    {
        $index_prefix = Config::get('larasearch.elasticsearch.index_prefix', '');
        if ($index_prefix && !Str::startsWith($index, $index_prefix)) $index = $index_prefix . $index;

        return self::getClient()->indices()->refresh(['index' => $index]);
    }
public static function refresh ( $ index ) { $ index_prefix = Config :: get ( 'larasearch.elasticsearch.index_prefix' , '' ) ; if ( $ index_prefix && ! Str :: startsWith ( $ index , $ index_prefix ) ) $ index = $ index_prefix . $ index ; return self :: getClient ( ) -> indices ( ) -> refresh ( [ 'index' => $ index ] ) ; }
Refresh an index

@param $index
@return array
Refresh an index