在 hybris Solr 中索引文档的几个属性
Index few attributes of document in hybris Solr
我们的网站上有大约 10 万种产品,每个产品都有大约 30 个属性被编入索引。大多数时候我们只更新产品的价格,但我们仍然需要索引整个产品。是否可以在 hybris 中仅索引所有 100k 产品的价格属性(或描述属性)。
从 Solr 4.0 开始就可以了。此功能称为部分更新,您可以在其中仅更新已更改的字段,在您的情况下为价格和描述。
官方文档是here.
Marco 是对的。您可以进行部分更新。
对于 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
我们的网站上有大约 10 万种产品,每个产品都有大约 30 个属性被编入索引。大多数时候我们只更新产品的价格,但我们仍然需要索引整个产品。是否可以在 hybris 中仅索引所有 100k 产品的价格属性(或描述属性)。
从 Solr 4.0 开始就可以了。此功能称为部分更新,您可以在其中仅更新已更改的字段,在您的情况下为价格和描述。 官方文档是here.
Marco 是对的。您可以进行部分更新。
对于 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