Someone's sums don't add up - and it's not me! (Zazzle's rss feeds)
Posted: Monday, September 16, 2019 10:21:37 AM
Q. When is 9 x 120 not the same as 20 x 54?
A. When it's a Zazzle feed!

Page size is ps
Page number is pg
https://feed.zazzle.com/rss?ps=120&pg=9
https://feed.zazzle.com/rss?ps=20&pg=54
The first returns results but the second doesn't.
If the second has its page number reduced each time by 1, only when it reaches 50 do you get any results.

No results:
https://feed.zazzle.com/rss?ps=20&pg=51
Results:
https://feed.zazzle.com/rss?ps=20&pg=50

Weirdly, though, this gives results
https://feed.zazzle.com/rss?ps=90&pg=12
but this doesn't
https://feed.zazzle.com/rss?ps=60&pg=18

In each example, the Page Size x Page Number = 1080

So, is this a bug?
Thanks for any answers!
Grin
Posted: Monday, September 16, 2019 2:14:33 PM
Mark,

Ran into something related.

I think there's some redesign going on that we're not privy to... yet. Go to any page in your storefront and in the pull-down menu for the number of items to be shown choose the 128. Then, refresh and watch your browser bar. You'll see the ps= go from 128 to 120! The times they are a'changin'.
Posted: Wednesday, September 18, 2019 10:31:17 AM
The sums add up just fine, but you might be forgetting that we only return around 1,000 results for any particular search. So at some point the "page" will not contain any results.

https://feed.zazzle.com/rss?ps=20&pg=50 - Page 50 contains search results #981 through #1000. This range is entirely within the "return the first 1,000 results"
https://feed.zazzle.com/rss?ps=20&pg=51 - Page 51 contains search results #1001 through #1020. This range is not within the "return the first 1,000 results"

https://feed.zazzle.com/rss?ps=90&pg=12 - Page 12 contains search results #991 through #1080. This range is partly within the "return the first 1,000 results" so perhaps the search is rounding up a bit.
https://feed.zazzle.com/rss?ps=60&pg=18 - Page 18 contains search results #1021 through #1080. This range is not within the "return the first 1,000 results"

Posted: Wednesday, September 18, 2019 10:33:04 AM
Saints_Aplenty - I wouldn't say that's related to the particular question that HightonRidley is mentioning. You are right though - we are changing some stuff behind the scenes.
Posted: Wednesday, September 18, 2019 2:22:34 PM
Scott wrote:
The sums add up just fine, but you might be forgetting that we only return around 1,000 results for any particular search. So at some point the "page" will not contain any results.

https://feed.zazzle.com/rss?ps=20&pg=50 - Page 50 contains search results #981 through #1000. This range is entirely within the "return the first 1,000 results"
https://feed.zazzle.com/rss?ps=20&pg=51 - Page 51 contains search results #1001 through #1020. This range is not within the "return the first 1,000 results"

https://feed.zazzle.com/rss?ps=90&pg=12 - Page 12 contains search results #991 through #1080. This range is partly within the "return the first 1,000 results" so perhaps the search is rounding up a bit.
https://feed.zazzle.com/rss?ps=60&pg=18 - Page 18 contains search results #1021 through #1080. This range is not within the "return the first 1,000 results"


Oh, it's "around" a thousand. I hadn't realized that if the page requested had products within the thousand then it would return those as well as the ones above 1000, within the constraints of the page size. It makes sense looking at it from that angle.
Thanks for the explanation, Scott.
Learning, learning, every day a schoolday!
Grin Grin
Posted: Wednesday, September 18, 2019 7:35:55 PM
Happy
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Print this topic
RSS Feed
Normal
Threaded