【问题标题】:Is it possible to have a static index field for Liferay using solr-web plugin?是否可以使用 solr-web 插件为 Liferay 提供静态索引字段?
【发布时间】:2012-07-19 08:53:33
【问题描述】:

谁能告诉我是否可以使用 solr-web.plugin 为 Liferay 关联一个静态索引字段?有没有办法在 solr 中定义静态索引?

我需要类似 Nutch 中的如下配置

<property> 
    <name>index.static</name> 
    <value>source:nutch</value> 
</property> 

这会将字段“source”作为索引添加,并将其值作为“nutch”添加到 Nutch 中的所有文档中。 Liferay + Solr 有什么类似的吗?

【问题讨论】:

    标签: solr indexing liferay nutch


    【解决方案1】:

    不确定 Liferay 配置,但是您可以在 schema.xml 中添加一个默认值,该值将应用于文档。

    <field name="source" type="string" indexed="true" stored="true" default="Nutch" />
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-01-25
      • 1970-01-01
      • 2018-02-15
      • 2011-04-24
      • 1970-01-01
      • 2012-08-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多