I rename the directory index to indexes, now NutchBean works OK.

2007/6/6, xu xiong <[EMAIL PROTECTED]>:
Hi there,

I run nutch 0.9 follow the tutorial
(http://wiki.apache.org/nutch/NutchTutorial) step by step, until
searching  every step seems ok.
But when I search:
[EMAIL PROTECTED] nutch-0.9]$ bin/nutch org.apache.nutch.searcher.NutchBean TV
Exception in thread "main" java.io.FileNotFoundException: no segments*
file found: files:
        at 
org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:485)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:147)
        at org.apache.lucene.index.IndexReader.open(IndexReader.java:142)
        at org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher.java:71)
        at org.apache.nutch.searcher.NutchBean.init(NutchBean.java:119)
        at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:106)
        at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:84)
        at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:388)

Here is the crawl dir layout:
[EMAIL PROTECTED] nutch-0.9]$ ls crawl/
crawldb  index  linkdb  segments

What cause the exception?

Thanks in advance,
Xiong

Reply via email to