You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by lu...@uol.com.br on 2005/04/05 22:46:32 UTC

Small Bug

Hi,

 The link "More results from site..." wasn't working some times so I decided to check why.
 Then I found the error:

 "The url to "More results from site should have &start=0 instead of &start="+start+"".

 So if you want to fix it go to /path/to/tomcat/ROOT/ and edit search.jsp .

 Found this:

 <% if (hit.moreFromSiteExcluded()) {
String more =

"query="+URLEncoder.encode("site:"+hit.getSite()+" "+queryString)

+"&start="+start+"&hitsPerPage="+hitsPerPage+"&hitsPerSite="+0

+"&clustering="+clustering;%>

- <a href="/search.jsp?<%=more%>"><font face=arial size=2 color=808080>Mais resultados de

<%=hit.getSite()%></font></a>

<% } %>

 replace whith this:

 <% if (hit.moreFromSiteExcluded()) {

String more =

"query="+URLEncoder.encode("site:"+hit.getSite()+" "+queryString)

+"hitsPerPage="+hitsPerPage+"&hitsPerSite="+0

+"&clustering="+clustering;%>

- <a href="/search.jsp?<%=more%>"><font face=arial size=2 color=808080>Mais resultados de

<%=hit.getSite()%></font></a>

<% } %>



 Hope I've helped you!

Marco Vanossi

Sao Paulo - Brasil

RadarWeb.Net

 
 

Re: Small Bug

Posted by Doug Cutting <cu...@nutch.org>.
Thanks.  I just fixed this.

Doug

lumavanossi@uol.com.br wrote:
> Hi,
> 
>  The link "More results from site..." wasn't working some times so I decided to check why.
>  Then I found the error:
> 
>  "The url to "More results from site should have &start=0 instead of &start="+start+"".
> 
>  So if you want to fix it go to /path/to/tomcat/ROOT/ and edit search.jsp .
> 
>  Found this:
> 
>  <% if (hit.moreFromSiteExcluded()) {
> String more =
> 
> "query="+URLEncoder.encode("site:"+hit.getSite()+" "+queryString)
> 
> +"&start="+start+"&hitsPerPage="+hitsPerPage+"&hitsPerSite="+0
> 
> +"&clustering="+clustering;%>
> 
> - <a href="/search.jsp?<%=more%>"><font face=arial size=2 color=808080>Mais resultados de
> 
> <%=hit.getSite()%></font></a>
> 
> <% } %>
> 
>  replace whith this:
> 
>  <% if (hit.moreFromSiteExcluded()) {
> 
> String more =
> 
> "query="+URLEncoder.encode("site:"+hit.getSite()+" "+queryString)
> 
> +"hitsPerPage="+hitsPerPage+"&hitsPerSite="+0
> 
> +"&clustering="+clustering;%>
> 
> - <a href="/search.jsp?<%=more%>"><font face=arial size=2 color=808080>Mais resultados de
> 
> <%=hit.getSite()%></font></a>
> 
> <% } %>
> 
> 
> 
>  Hope I've helped you!
> 
> Marco Vanossi
> 
> Sao Paulo - Brasil
> 
> RadarWeb.Net
> 
>  
>