cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Morrison" <john.r.morri...@ntlworld.com>
Subject RE: Ant: Re: Adding XML searching with Lucene
Date Sun, 09 Dec 2001 21:32:14 GMT
> -----Original Message-----
> From: Bernhard Huber [mailto:berni_huber@a1.net]
> Sent: Sunday, 09 December 2001 9:18 pm
> To: cocoon-dev@xml.apache.org
> Subject: Re: Ant: Re: Adding XML searching with Lucene
> 
> 
> Hi,
> 
> >Wouldn't pagination be a result of transformation?
> >
> >First request:
> >
> ><xsl:transform match="search:hit(position() &lt;= 25)">
> >
> >Next request:
> >
> ><xsl:transform match="search:hit(position() &gt; 25) and
> >	search:hit(position() &lt;= 50)">
> >
> >(where 25 and 50 would be replaced with something like pagination *
> >no_results_to_display)
> >
> >no?
> >
> I prefer to reduce as much in the Generator that way the xml content is 
> kept small,
> I think about having a search result of say 500 matches, and hits per 
> page of say 10.
> 
> It performs better to put only 10 hits to the transformer, than 500 hits 
> of which 490 hits are not passed to the serializer.
> 
> bye bernhard

Fair enough :)

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message