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

            _client.Index(dto, x => x
                          .Id(dto.Url.ToString())
                          .Index(_options.RequestsIndexName)
                          );
        }