I've correctly run bin/nutch crawl to generate an index database called
"crawl",and I can search the "crawl" database by "bin/nutch
org.apache.nutch.searcher.NutchBean test",which returns a result like below:
Total hits: 1
0 20081007031237/http://localhost:81/1.txt
test
it is right since the "crawl" database is very small,just for the purpose of
testing,
now switch to the search.jsp in nutch-0.9.war,which I put in the directory
of $TOMCAT_HOME/webapps and then automatically generated,then I modified
$TOMCAT_HOME/webapps/nutch-0.9/WEB-INF/classes/nutch-site.xml like below:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->
<configuration>
<property>
<name>searcher.dir</name>
<value>/root/crawl</value>
</property>
</configuration>
which exactly point to the "crawl" database,
but each time when I post a request,it returns total 0 match,
you can try it out at http://www3.jobirn.com:8080/nutch-0.9/
any advice is greatly appreciated!
--
View this message in context:
http://www.nabble.com/issue-with-search.jsp-in-nutch-0.9.war-tp19855907p19855907.html
Sent from the Nutch - User mailing list archive at Nabble.com.