本文介绍了Nutch 消息“未激活 IndexWriters"加载到 solr 时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经按照 nutch 教程运行了 nutch 爬虫 http://wiki.apache.org/nutch/NutchTutorial 但是当我开始将它加载到 solr 时,我收到此消息,即未激活 IndexWriters - 检查您的配置"

I have run nutch crawler as per nutch tutorial http://wiki.apache.org/nutch/NutchTutorial but when i started loading it to solr i am getting this message i.e. "No IndexWriters activated - check your configuration"

bin/nutch solrindex http://localhost:8983/solr crawl/crawldb/ -dir crawl/segments/
Indexer: starting at 2013-07-15 08:09:13
Indexer: deleting gone documents: false
Indexer: URL filtering: false
Indexer: URL normalizing: false
**No IndexWriters activated - check your configuration**

Indexer: finished at 2013-07-15 08:09:21, elapsed: 00:00:07

推荐答案

确保包含插件 indexer-solr.转到文件:conf/nutch-site.xml 并在属性 plugin.includes 中添加插件,例如:

Make sure that the plugin indexer-solr is included. Go to the file: conf/nutch-site.xml and in the property plugin.includes add the plugin, for instance:

protocol-http|urlfilter-regex|parse-(html|tika)|index-(basic|anchor)|indexer-solr|scoring-opic|urlnormalizer-(pass|regex|basic)

在添加插件后,No IndexWriters 被激活 - 检查您的配置警告在我的情况下消失了.

After adding the plugin the No IndexWriters activated - check your configuration warning disappeared in my case.

检查此线程:http://lucene.472066.n3.nabble.com/a-plugin-extending-IndexWriter-td4074353.html

这篇关于Nutch 消息“未激活 IndexWriters"加载到 solr 时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 22:45