You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by brad <br...@bcs-mail.net> on 2010/09/07 05:41:52 UTC

Nutch 1.2 - Error trying to Index a Segment

When trying to create a index:
bin/nutch index crawl_test/indexes crawl_test/crawldb crawl_test/linkdb
crawl_test/segments/*

I'm getting the error:
java.lang.NoSuchMethodError:
org.apache.nutch.indexer.NutchDocument.add(Ljava/lang/String;Ljava/lang/Obje
ct;)V

It appears to occur in BasicIndexFilter.java when it call add in
NutchDocument.java

In looking at the file it appears the NutchDocument.java changed in version
1.2 from:

public void add(String name, String value) 

To:
public void add(String name, Object value) 

Is this causing the problem?

Thanks
Brad