public async Task UpdateAsync(IndexRequest indexRequest) { var dto = indexRequest.ToDbo(); await _client.IndexAsync(dto, x => x .Id(dto.Url.ToString()) .Index(_options.RequestsIndexName) ); }
public void Update(IndexRequest indexRequest) { var dto = indexRequest.ToDbo(); _client.Index(dto, x => x .Id(dto.Url.ToString()) .Index(_options.RequestsIndexName) ); }