Hi Marina,

Your mail confuses me. You are talking about EntityQueryResult and getting 
documents at the same time?!? Are you searching for entities or for 
documents ... and what are these 'registers'?

What you probably want to achieve is paging of the results. But the API 
doesn't provide an easy way to do this. The QueryAPI provides methods that 
have a maxCount for both searching entities or documents. But this maxCount 
will just truncate the result after the maxCount entities/docs. There are no 
means of getting results from N1 to N2. This would lead to requerying every 
time and getting the range of interest - but this is something you can also 
do once having the result, keeping it, and getting rows by chunks as they 
are needed. This is the way it is implemented in the WebUI.

Regards,
Ilian

----- Original Message ----- 
From: "Marina Larraud" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: 03 March 2007, Saturday 02:57
Subject: [KIM-discussion] QueryAPI and getDocuments


> Hi,
> Is there some way to get the query's result (EntityQueryResult), but not 
> all
> documents?
> I need make a page that shows the query's result, but I want display only 
> 10
> registers, then the next 10 registers, and so on...
> I thought about execute the function getDocuments (QueryAPI interface), 
> but
> with a range. If the range is 1 to 10, so, te query return an
> EntityQueryResult with the first 10 documents, and so on.
>
> Thanks a lot,
>
> Marina
>
>
> __________ NOD32 2090 (20070302) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of 
> this mailing list.
>
> KIM-discussion mailing list
> [email protected]
> http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com
>
>
> __________ NOD32 2090 (20070302) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
> 


_______________________________________________
NOTE: Please REPLY TO ALL to ensure that your reply reaches all members of this 
mailing list.

KIM-discussion mailing list
[email protected]
http://ontotext.com/mailman/listinfo/kim-discussion_ontotext.com

Reply via email to