2012-01-31 56 views
0

我使用nutch 1.4,我想將靜態字段映射到Solr。nutch和solr之間的映射靜態字段

我知道有索引靜態插件。我這樣配置它在nutch-site.xml中:

<property> 
     <name>index-static</name> 
     <value>field:value</value> 
    </property> 

但是,該值不會發送到Solr。

有沒有人有解決方案?

回答

1

它看起來像nutch-default.xml中的條目是錯誤的。 根據插件來源「index.static」而不是「index-static」是屬性的正確名稱。

String fieldsString = conf.get("index.static", null); 

在我的nutch-site.xml中使用後,我能夠發送多個字段到我的solr服務器。

還要確保插件已添加到「plugin.includes」屬性中包含的插件列表中。