在Hybris Solr中索引文件的几个属性

时间:2018-11-14 14:46:09

标签: solr lucene hybris

我们的网站上有大约10万个产品,每个产品都有大约30个被索引的属性。在大多数情况下,我们只更新产品的价格,但我们仍然必须对整个产品进行索引。是否有可能仅对所有100k产品的价格属性(或描述属性)建立索引。

2 个答案:

答案 0 :(得分:1)

从Solr 4.0开始是可能的。此功能称为部分更新,您可以在其中仅更新更改的字段(根据情况,价格和说明)。 官方文档为here

答案 1 :(得分:1)

马可是对的。您可以进行部分更新。

对于Hybris,Creating and Configuring Indexed Types中有一些文档。 SolrIndexerQuery.type属性使您可以选择partial_update

You have the following values to choose from:
FULL: recreates the index
UPDATE: updates some documents in the index
PARTIAL_UPDATE: allows you to select the fields for the update
DELETE: deletes documents from the index

enter image description here