[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xindice-users
Subject:    Re: How to retrieve first 10 documents from collection?
From:       Carsten Ziegert <carsten.ziegert () ik ! fh-hannover ! de>
Date:       2002-07-30 5:12:09
[Download RAW message or body]

I suppose XPath doesn't support this kind of query.
If you have a very small collection you could retrieve
everything using the query '//' and iterate over the
result list. Maybe it's more performant than getting
10 single documents.. I think it depends on how expensive
the listDocuments() method is

Carsten


Am 29.07.2002 18:18 Uhr schrieb "Evgeniy Strokin" unter
<evgeniy.strokin@netzero.com>:

> Thanks Dave, this is way I'm using.
> But I though maybe it could be like: /document[position()<10]. I mean, get
> everything from one request.
> I guess, we cannot do that.
> 
> Thanks anyway,
> Jenya
> 
>> -----Original Message-----
>> From: David Viner [mailto:dviner@yahoo-inc.com]
>> Sent: Monday, July 29, 2002 11:34 AM
>> To: xindice-users@xml.apache.org
>> Subject: RE: How to retrieve first 10 documents from collection?
>> 
>> 
>> you could do a listDocuments(), and then iterate over that list, and
>> retrieve the first 10 with getDocument().
>> 
>> dave
>> 
>> -----Original Message-----
>> From: Evgeniy Strokin [mailto:evgeniy.strokin@netzero.com]
>> Sent: Monday, July 29, 2002 7:23 AM
>> To: xindice-users@xml.apache.org
>> Subject: How to retrieve first 10 documents from collection?
>> 
>> 
>> Hi,
>> is there some way to retrieve not all documents from collection?
>> Actually I need retrieve first 10 documents, then next 10 and so on.
>> I'm using XML-RPC.
>> 
>> Any suggestions are welcome,
>> thanks
>> Jenya
>> -------------------------------------------
>> Introducing NetZero Long Distance
>> Unlimited Long Distance only $29.95/ month!
>> Sign Up Today! www.netzerolongdistance.com
>> 
>> 
>> 
> 
> -------------------------------------------
> Introducing NetZero Long Distance
> Unlimited Long Distance only $29.95/ month!
> Sign Up Today! www.netzerolongdistance.com
> 


--

Medizinische Hochschule Hannover                    Fachhochschule Hannover
Abt. Hämatologie und Onkologie     FB Informations- und Kommunikationswesen
Carl-Neuberg-Straße 1                               Ricklinger Stadtweg 120
30625 Hannover                                               30459 Hannover

                           ++49-511-9296-1650
                    http://summit-bmt.fh-hannover.de





[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic