我正在使用Solr 6.1.0
我需要快速进行部分更新,
怎么做?
它有任何Solr API或SolrNet可以做到吗?
有什么例子吗?
您可以通过以下方式更新文档:
var document = new MyItem() { Id = 5 , Title = "Bad Title", Content="Bad Content"};
var header = await _solrOperations.AtomicUpdateAsync(
document, new []
{
new AtomicUpdateSpec("title", AtomicUpdateType.Set, "Awesome title"),
new AtomicUpdateSpec("content", AtomicUpdateType.Set, "Awesome content")
});
await _solrOperations.CommitAsync();