solr 更新特定字段而不是整个文档 [英] solr update specific fields rather than entire document

查看:38
本文介绍了solr 更新特定字段而不是整个文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

solr 是否允许更新特定字段而不是索引整个文档.

Does solr allow updating specific field rather than indexing entire document.

我知道 solr 1.4 没有.

I know solr 1.4 doesn't.

这是否已在较新版本中实现?

Has this been implemented in newer versions?

推荐答案

不.Solr 不允许更新特定字段.
您需要使用所有现有值和更改后的值再次更新文档.
更新基本上就是文档的删除和添加.

Nope. Solr doesn't allow updating a specific field.
You would need to update the document again with all the existing values and the changed values.
The Update basically is delete and add of the document.

更新

Solr 确实允许部分更新 4.0 @ http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/

Solr does Allow Partial Updates with 4.0 @ http://solr.pl/en/2012/07/09/solr-4-0-partial-documents-update/

这篇关于solr 更新特定字段而不是整个文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆