在solr和nutch集成期间无法发布到solr

时间:2013-09-09 14:17:26

标签: solr integration nutch

我使用的是solr-4.4.0和nutch-1.7。 我是solr和nutch的新手。 我正在尝试使用以下blog ::

集成solr和nutch
  

http://www.building-blocks.com/thinking/building-a-search-engine-with-nutch-and-solr-in-10-minutes/

成功启动solr ::

manish@ubuntu:~$ cd /usr/local/solr/example/
manish@ubuntu:/usr/local/solr/example$ java -jar start.jar

以及成功编制索引的网址::

manish@ubuntu:/usr/local/nutch/bin/nutch crawl urls -dir crawl -depth 3 -topN 50

示例输出::

fetching http://www.tatvic.com/tatvic-excel-plugin-webinar (queue crawl delay=5000ms)
-activeThreads=10, spinWaiting=9, fetchQueues.totalSize=36
-activeThreads=10, spinWaiting=10, fetchQueues.totalSize=36
-activeThreads=10, spinWaiting=10, fetchQueues.totalSize=36
-activeThreads=10, spinWaiting=10, fetchQueues.totalSize=36
-activeThreads=10, spinWaiting=10, fetchQueues.totalSize=36
-activeThreads=10, spinWaiting=10, fetchQueues.totalSize=36
.
.
.
.
.
..

Parsed (1ms):http://www.tatvic.com/anomaly-detection/
Parsed (1ms):http://www.tatvic.com/blog/dynamic-funnel-in-google-analytics/
Parsed (1ms):http://www.tatvic.com/blog/google-analytics-custom-reports/
Parsed (0ms):http://www.tatvic.com/collaborative-filtering/
Parsed (1ms):http://www.tatvic.com/contact-thanks/
..
.
.
.
.
LinkDb: linkdb: crawl/linkdb
LinkDb: URL normalize: true
LinkDb: URL filter: true
LinkDb: internal links will be ignored.
LinkDb: adding segment: file:/usr/local/nutch/crawl/segments/20130909064920
LinkDb: adding segment: file:/usr/local/nutch/crawl/segments/20130909065449
LinkDb: adding segment: file:/usr/local/nutch/crawl/segments/20130909064936
LinkDb: adding segment: file:/usr/local/nutch/crawl/segments/20130909043135
LinkDb: adding segment: file:/usr/local/nutch/crawl/segments/20130909035154
LinkDb: merging with existing linkdb: crawl/linkdb
LinkDb: finished at 2013-09-09 07:01:53, elapsed: 00:00:04
crawl finished: crawl

但是,在发布到solr时我得到了以下内容::

manish@ubuntu:/usr/local/nutch$ bin/nutch solrindex http://127.0.0.1:8983/solr/ crawl/crawldb -linkdb crawl/linkdb crawl/segments/*
Indexer: starting at 2013-09-09 07:05:05
Indexer: deleting gone documents: false
Indexer: URL filtering: false
Indexer: URL normalizing: false
No IndexWriters activated - check your configuration

Indexer: finished at 2013-09-09 07:05:12, elapsed: 00:00:07

这真的意味着什么?它不是在发帖吗?

在浏览器中它没有显示任何内容::

 http://127.0.0.1:8983/solr/select?q=tatvic

浏览器示例::

 <response><lst name="responseHeader"><int name="status">0</int><int name="QTime">111</int><lst name="params"><str name="q">tatvic</str></lst></lst><result name="response" numFound="0" start="0"/></response>

我尝试了很多次!!

我认为这可能是一个问题。

你能帮我解决一下吗?

2 个答案:

答案 0 :(得分:0)

我遇到了同样的问题然后我为插件添加了一些属性,它解决了我的问题。 检查以下链接,我回答了类似的问题。

https://stackoverflow.com/a/25945844/3496666

答案 1 :(得分:-2)

$ bin/nutch solrindex http://localhost:8983/solr/ crawl/crawldb crawl/linkdb crawl/segments/*

SolrIndexer:从2013-09-11 08:23:14开始 SolrIndexer:完成于2013-09-11 08:23:28,已过去:00:00:13

当我尝试这个时它完美地工作了......