(Forwarding to nutch-dev) 

WRT forwardRange, I suspect that is somethinng that is best done in
XSLT. Currently Nutch doesn't (AFAIK) provide search.jsp with what page
you are on - it is stateless & just returns data based on the number of
items requested and the item number to start from. Based on that data
the presentation layer can work out what page it is currently displaying
quite easily.


> -----Original Message-----
> From: Jack Tang [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 8 April 2005 3:35 PM
> To: Nick Lothian
> Subject: Re: [jira] Commented: (NUTCH-39) pagination in search result
> 
> Hi Nick
> 
> On Apr 8, 2005 1:48 PM, Nick Lothian 
> <[EMAIL PROTECTED]> wrote:
> > Shouldn't things like that, <nutchSearch:windowWidth>, 
> > <nutchSearch:nextPageImg> and <nutchSearch:prevPageImg> be 
> defined in 
> > the XSLT as presentation data?
> 
> I agree with you;)
> 
> > Also, what is "forwardRange" for?
> 
> say,  
>                Pre << 1 2 3 4 >> Next
> when current page is 4, when I click next, the pagination 
> window move forward. and "forwardRage" tell how many page the 
> window should move.
> If "forwardRange = 2", then
>               Pre << 3 4 5 6 >> Next
> Maybe the attribute name sounds not good.
> 
> > I'm more interested in using this as a programatic API for 
> Nutch than 
> > just as a backend for presentation.
> > 
> > Nick
> > 
> > > -----Original Message-----
> > > From: Jack Tang [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, 8 April 2005 2:54 PM
> > > To: [email protected]
> > > Subject: Re: [jira] Commented: (NUTCH-39) pagination in search 
> > > result
> > >
> > > also, I need
> > > <nutchSearch:noResult>msg</nutchSearch:noResult>
> > >
> > > /Jack
> > >
> > > On Apr 8, 2005 12:25 PM, Jack Tang <[EMAIL PROTECTED]> wrote:
> > > > Here is my wish:
> > > >
> > > >  <?xml version="1.0"?>
> > > >  <rss version="2.0"
> > > > xmlns:nutchSearch="http://nutch.org/-/spec/nutchsearchrss/1.0/";>
> > > >    <channel>
> > > >      <title>Nutch Search: Search Engine</title>
> > > >      <link>http://nutch.org/search.jsp?q=....</link>
> > > >      <description>Search results for "Search Engine" at
> > > Nutch.org</description>
> > > >      <language>en-us</language>
> > > >      <copyright>&amp;copy;2003-2005, Nutch Org</copyright>
> > > >      <nutchSearch:queryString>search 
> term</nutchSearch:queryString>
> > > >      <openSearch:totalResults>allHits</openSearch:totalResults>
> > > >      <openSearch:startIndex>1</openSearch:startIndex>
> > > >      <nutchSearch:hitsPerSite>2</nutchSearch:hitsPerSite>
> > > >      <openSearch:itemsPerPage>10</openSearch:itemsPerPage>
> > > >
> > > >      <nutchSearch:clustering>yes/no</nutchSearch:clustering>
> > > >
> > > >      <item>
> > > >        <title>html title</title>
> > > >        <description>summary</description>
> > > >        <nutch:displayUrl>the url show in 
> result.<nutch:dispalyUrl>
> > > >        <link>click url</link>
> > > >        <nutchSearch:mimeType>text/html</nutchSearch:mimeType>
> > > >        <nutchSearch:cachedUrl>cached.jsp</nutchSearch:cachedUrl>
> > > >        
> <nutchSearch:explainUrl>explain.jsp</nutchSearch:explainUrl>
> > > >        
> <nutchSearch:anchorsUrl>anchor.jsp</nutchSearch:anchorsurl>
> > > >        
> <nutchSearch:moreFromSiteUrl></nutchSearch:moreFromSiteUrl>
> > > >      </item>
> > > >      <item>
> > > >        ....
> > > >      </item>
> > > >      <!-- ... -->
> > > >
> > > >      <nutchSearch:pagination>
> > > >        
> <nutchSearch:prevPageImg>pre.jpg</nutchSearch:prevPageImg>
> > > >        <nutchSearch:prevPageUrl></nutchSearch:prevPageUrl>
> > > >        <nutchSearch:nextPageUrl></nutchSearch:nextPageUrl>
> > > >        
> <nutchSearch:nextPageImg>next.jpg</nutchSearch:nextPageImg>
> > > >        
> <nutchSearch:windowWidth>Math.min(5,allHits/itemsPerpage + 
> > > > allHits%itemsPerpage>1?1:0)<nutchSearch:windowWidth>
> > > >        <nutchSearch:forwardRange>1</nutchSearch:forwardRange>
> > > >      </nutchSearch:pagination>
> > > >    </channel>
> > > >  </rss>
> > > >
> > > > Regards
> > > > /Jack
> > > >
> > > > On Apr 8, 2005 1:20 AM, Doug Cutting <[EMAIL PROTECTED]> wrote:
> > > > > Chris Mattmann wrote:
> > > > > > Complete agree here: RSS makes a lot of sense since
> > > it's really a
> > > > > > standard for representing a "list of items" and their
> > > respective
> > > > > > metadata. This list of items is basically the main
> > > product of the
> > > > > > search engine, i.e., it's list of results. I think 
> that if by 
> > > > > > default search.jsp produced RSS output, rather than HTML, 
> > > > > > Nutch would also be more attractive as an API to plug in to,
> > > and Nutch
> > > > > > could be one of the standard components in some system
> > > of systems architecture.
> > > > >
> > > > > Can someone draft a specification of what the Nutch 
> RSS output 
> > > > > should look like?  I think this should be based on what
> > > search.jsp
> > > > > currently produces.  The output should not be 
> internationalized, 
> > > > > rather that can be done by stylesheets.
> > > > >
> > > > > In particular, what's needed beyond RSS and A9's
> > > OpenSearch extensions?
> > > > >  Under <channel/> we need navigation urls, for next-page, 
> > > > > show-all-hits, clustering, etc.  Under <item/> we 
> need urls for 
> > > > > cache, explain, and more-from-site.  Is there more?
> > > > >
> > > > > Once we have some agreement about what should be
> > > returned, then we
> > > > > need a volunteer to implement it!
> > > > >
> > > > > Doug
> > > > >
> > > >
> > >
> > 
> > IMPORTANT: This e-mail, including any attachments, may 
> contain private or confidential information. If you think you 
> may not be the intended recipient, or if you have received 
> this e-mail in error, please contact the sender immediately 
> and delete all copies of this e-mail. If you are not the 
> intended recipient, you must not reproduce any part of this 
> e-mail or disclose its contents to any other party.
> > This email represents the views of the individual sender, 
> which do not necessarily reflect those of education.au 
> limited except where the sender expressly states otherwise.
> > It is your responsibility to scan this email and any files 
> transmitted with it for viruses or any other defects.
> > education.au limited will not be liable for any loss, 
> damage or consequence caused directly or indirectly by this email.
> >
> 


IMPORTANT: This e-mail, including any attachments, may contain private or 
confidential information. If you think you may not be the intended recipient, 
or if you have received this e-mail in error, please contact the sender 
immediately and delete all copies of this e-mail. If you are not the intended 
recipient, you must not reproduce any part of this e-mail or disclose its 
contents to any other party.
This email represents the views of the individual sender, which do not 
necessarily reflect those of education.au limited except where the sender 
expressly states otherwise.
It is your responsibility to scan this email and any files transmitted with it 
for viruses or any other defects.
education.au limited will not be liable for any loss, damage or consequence 
caused directly or indirectly by this email. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to