[Nutch-1.0] nutch-1.0 solution under Windows Web Front-end search no results

Source: Internet
Author: User

Nutch-1.0 command line search results, but to the Web Front-end search, always no results, no matter how configured, search keywords, always prompt the following depressing information:0-0Item (a total of 0 query results)

It was very depressing and finally solved today.

 

(1) The browser unzip the nutch-1.0.war afterTomcat must be restarted after modifying the nutch-site.xml. (Restart Tomcat every time you modify the Nutch-site.xml and search again)

The nutch-site.xml must be configured with the following parameters:

 

<Property>
<Name> HTTP. Agent. Name </Name>It must be configured. Otherwise, no search results will be found.
<Value> nutch-1.0 <alue>
<Description> HTTP 'user-agent' </description>
</Property>

 

<Property>
<Name> searcher. dir </Name>
<Value> D:/Data <value>Data is the directory generated by crawlers. Use absolute path for parameter values
<Description> path to root of Crawl. </description>
</Property>

The data directory is the directory generated by crawlers. The following directories are available:
Crawldb,
Index,
Indexes,
Linkdb,
Segments

 

(2) Make sure that no space is displayed in the tomcat installation directory; otherwise, the search result will always be 0.

This is where I encountered the problem,

My tomcat installation path is
D:/program files/Apache Software Foundation/tomcat 6.0/webapps/nutch-1.0,

The space here has an impact, resulting in no result. It is very painful. Please pay attention to it.

(3) In Windows

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.