Hi Himanshu,


Sure you can, but the performance might be pretty bad. Basic routine for
pagination is something like this:



let $start := 21

let $size = 10

let $end := $start + $size – 1

return (

  (: expression that returns documents :)

)[$start to $end]



Kind regards,

Geert



*Van:* [email protected] [mailto:
[email protected]] *Namens *himanshu kapsime
*Verzonden:* dinsdag 7 augustus 2012 15:55
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* [MarkLogic Dev General] Pagination while using fn:contains()



Hi,
Is it possible to do pagination while doing search with the help of
fn:contains() ?
Actually I am finding it difficult to get total number of search results
while using fn:contains() and I know it is easily available if I am using
search:search() but I need to use fn:contains() only.

Regards
Himanshu Kapsime
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to