【问题标题】:Index few attributes of document in hybris Solr在 hybris Solr 中索引文档的几个属性
【发布时间】:2019-04-17 13:48:53
【问题描述】:

我们的网站上有大约 100,000 个产品,每个产品都有大约 30 个被索引的属性。大多数时候我们只更新产品的价格,但我们仍然需要索引整个产品。在 hybris 中是否可以仅索引所有 100k 产品的价格属性(或描述属性)。

【问题讨论】:

    标签: solr lucene hybris


    【解决方案1】:

    从 Solr 4.0 开始就有可能。此功能称为部分更新,您可以仅更新更改的字段,在您的情况下,价格和描述。 官方文档是here

    【讨论】:

      【解决方案2】:

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

      对于 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
      

      【讨论】:

        猜你喜欢
        • 2021-08-12
        • 1970-01-01
        • 2023-03-10
        • 1970-01-01
        • 1970-01-01
        • 2017-03-05
        • 2011-02-17
        • 1970-01-01
        • 2023-04-02
        相关资源
        最近更新 更多