Skip to main content
edited tags
Link
Nick Craver
  • 2.2k
  • 11
  • 7
added 409 characters in body; edited tags; edited title
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

Search with more than 10000 Paging fails at 10K items? for /search on any site but Stack Overflow

I haveThere's a problem with requesting more than 10000 items.

With Stack Overflow it works just fine. But with Super User, Server Fault10, etc. no items are returned for requests for000 items after the 10000th and has_more is false.

It doesn't matter whether page and pagesize are both 100 or page is 200 and pagesize 50.

  • With Stack Overflow it works just fine.
  • But with Super User, Server Fault, etc. no items are returned for requests for items after the 10,000th and has_more is erroneously set to false.
  • It doesn't matter whether page and pagesize are both 100 or page is 200 and pagesize is 50.

ExampleFor example, this works:

  
    https://api.stackexchange.com/2.2/search/excerpts?page=199&pagesize=50&order=desc&sort=activity&q=security&site=serverfaultpage=199&pagesize=50&q=security&site=serverfault

Works and has_more is true.

But this fails:
    https://api.stackexchange.com/2.2/search/excerpts?page=200&pagesize=50&order=desc&sort=activity&q=security&site=serverfaultpage=200&pagesize=50&q=security&site=serverfault

Doesn't work anymore and has_more is (incorrectly) false.

Reference this live site search, which shows 28,846 questions that should match.

Is this a bug or am I missing something?

Search with more than 10000 items?

I have a problem with requesting more than 10000 items.

With Stack Overflow it works just fine. But with Super User, Server Fault, etc. no items are returned for requests for items after the 10000th and has_more is false.

It doesn't matter whether page and pagesize are both 100 or page is 200 and pagesize 50.

Example:

 https://api.stackexchange.com/2.2/search/excerpts?page=199&pagesize=50&order=desc&sort=activity&q=security&site=serverfault

Works and has_more is true.

https://api.stackexchange.com/2.2/search/excerpts?page=200&pagesize=50&order=desc&sort=activity&q=security&site=serverfault

Doesn't work anymore and has_more is false.

Is this a bug or am I missing something?

Paging fails at 10K items for /search on any site but Stack Overflow

There's a problem with requesting more than 10,000 items.

  • With Stack Overflow it works just fine.
  • But with Super User, Server Fault, etc. no items are returned for requests for items after the 10,000th and has_more is erroneously set to false.
  • It doesn't matter whether page and pagesize are both 100 or page is 200 and pagesize is 50.

For example, this works: 
    /2.2/search/excerpts?page=199&pagesize=50&q=security&site=serverfault

and has_more is true.

But this fails:
    /2.2/search/excerpts?page=200&pagesize=50&q=security&site=serverfault

and has_more is (incorrectly) false.

Reference this live site search, which shows 28,846 questions that should match.

Is this a bug or am I missing something?

Source Link

Search with more than 10000 items?

I have a problem with requesting more than 10000 items.

With Stack Overflow it works just fine. But with Super User, Server Fault, etc. no items are returned for requests for items after the 10000th and has_more is false.

It doesn't matter whether page and pagesize are both 100 or page is 200 and pagesize 50.

Example:

https://api.stackexchange.com/2.2/search/excerpts?page=199&pagesize=50&order=desc&sort=activity&q=security&site=serverfault

Works and has_more is true.

https://api.stackexchange.com/2.2/search/excerpts?page=200&pagesize=50&order=desc&sort=activity&q=security&site=serverfault

Doesn't work anymore and has_more is false.

Is this a bug or am I missing something?