【发布时间】:2019-10-10 03:06:52
【问题描述】:
在 Solr 关于原子更新的文档中,他们提到字段应该是非索引和非存储的。
https://lucene.apache.org/solr/guide/7_6/updating-parts-of-documents.html#in-place-update-example
只有当需要更新的字段满足这三个条件时,才会使用这种方式进行原子更新操作:
是非索引 (indexed="false")、非存储 (stored="false")、单值 (multiValued="false") 数字 docValues (docValues="true") 字段;
<field name="price" type="float" indexed="false" stored="false" docValues="true"/>
这样做的示例用例是什么?
这是否意味着它不可查询且不会在响应中返回?
【问题讨论】:
-
这是一个很好的例子,说明何时这是一个好方法:stackoverflow.com/questions/22287584/solr-index-vs-stored/…
-
@HectorCorrea 谢谢!
-
启用 docValues 后,该字段仍可在提升等时使用。