You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by Jeet Singh <je...@gmail.com> on 2008/04/01 07:30:13 UTC

Controlling no. of pages to crawl

Hi,

Can I put a limit that while crawling for whole-web, (not using crawl 
command) it should fetch only x no. of pages?
I need this limit in every crawl session.

Thanks
Jeet Singh

Issue in parsing the query

Posted by Jeet Singh <je...@gmail.com>.
Hi,

I've a small program which opens a nutch index and performs searches.
While indexing, I've added a new field "myfield" in every document.

Now whenever I try to call addRequiredField to the Query object, it 
throws the error
at runtime that: Field "myfield" is not known

I've been told that Query.parse() needs to know all the supported fields 
in advance and I can
mention that in the plugin.xml

But the issue is that I'm not using a plugin to search, I've written a 
small search program which opens the index and
searches. So where can I tell Query.parse() about my field "myfield" ?

I'm new to Nutch and I'm unable to solve it by myself.
Please help

Thanks
Jeet Singh