response = client.indices.put_settings( index: 'twitter', body: { index: { refresh_interval: '1s' } } ) puts response