开发者

RESTful search centering on specific record within a larger query set

开发者 https://www.devze.com 2022-12-19 21:17 出处:网络
So I have a query that returns lets say 1000 records.I\'m using paging to grab sections of that, and I know the total number of records due to the $inlinecount=allpages tag.I\'d like to be able to gra

So I have a query that returns lets say 1000 records. I'm using paging to grab sections of that, and I know the total number of records due to the $inlinecount=allpages tag. I'd like to be able to grab a specific record, and know where in the 1000 records it lands. Let's say the record I'm looking for actually lands on record number 481, is there a way to figure that out? If I can know that, I can figure out which paging group I need to grab to get to the result.

My goal is to show the user the same list, unfiltered, but focus on the record they are looking for. They then can scroll backwards or forwards from that record as if they had just jumped to the middle of the total records.

开发者_JS百科

Is there a tricky way to query RESTful data services to do something like what I'm asking?

0

精彩评论

暂无评论...
验证码 换一张
取 消