Managing indices with the native client