cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Ant: Re: Adding XML searching with Lucene
Date Mon, 10 Dec 2001 23:14:26 GMT
Bernhard Huber wrote:
> 
> 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.

Exactly.

This is why I think that 'exhibition' (the codename of my image library
that Giacomo saw unfinished, now getting dust on my disk) Paginator is
not that userful for this (it's useful for many other things, but not
this.


-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



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


Mime
View raw message