public async Task InsertAsync(User user)
        {
            var userIndex = UserIndexFactory.CreateSimpleIndex(user, UserAction.Create);

            var response = await this.client.IndexAsync(
                userIndex,
                i =>
                i
                .Index(IndexName)
                .Type(TypeName)
                .Id(user.Id)
                .Refresh(Refresh.True)).ConfigureAwait(false);
        }
        public async Task UpdateAsync(User user)
        {
            var updateIndex = UserIndexFactory.CreateSimpleIndex(user, UserAction.Update);

            await this.client.UpdateAsync(
                DocumentPath <UserIndex>
                .Id(updateIndex.Id),
                u => u
                .Index(IndexName)
                .Type(TypeName)
                .DocAsUpsert()
                .Doc(updateIndex))
            .ConfigureAwait(false);
        }