Say we do a search for races in the US (with a 12 races per page) --
http://search.active.com/search?l=everywhere&m=meta%3AstartDate%3Adaterange%3Atoday..+meta%3Achannel%3DRunning+meta%3AsplitMediaType%3DEvent&k=&v=json&num=12&s=relevance&r=45&page=1
This returns something like this:
{"endIndex":12,"numberOfResults":4180,"pageSize":12,"searchTime":0.122798,"_results":[ ... }
So there should be ceil(4180/12) = pages of results.
However going to page 100 returns nothing:
{"endIndex":0,"numberOfResults":0,"pageSize":12,"searchTime":4.86E-4,"_results":[]}
The search frequently returns nothing as early as the 5th page of the results. And I am using my API key when searching, I took it out for this example.
Message edited by Adam Bailin 15 years ago
active Admin
–
15 years ago
The "numberOfResults" count is an estimate from our search engine and is often, as you've discovered, inaccurate. What's the nature of your application? Maybe we can help you architect a work around as we've done on http://search.active.com.
Say we do a search for races in the US (with a 12 races per page) --
http://search.active.com/search?l=everywhere&m=meta%3AstartDate%3Adaterange%3Atoday..+meta%3Achannel%3DRunning+meta%3AsplitMediaType%3DEvent&k=&v=json&num=12&s=relevance&r=45&page=1
This returns something like this:
{"endIndex":12,"numberOfResults":4180,"pageSize":12,"searchTime":0.122798,"_results":[ ... }
So there should be ceil(4180/12) = pages of results.
However going to page 100 returns nothing:
{"endIndex":0,"numberOfResults":0,"pageSize":12,"searchTime":4.86E-4,"_results":[]}
The search frequently returns nothing as early as the 5th page of the results. And I am using my API key when searching, I took it out for this example.
Message edited by Adam Bailin 15 years ago
active Admin – 15 years ago
The "numberOfResults" count is an estimate from our search engine and is often, as you've discovered, inaccurate. What's the nature of your application? Maybe we can help you architect a work around as we've done on http://search.active.com.