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