Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I'm getting the wrong number of results back from the /search route depending on what combination of values I provide for the tagged and nottagged parameters.

Examples:
http://api.stackoverflow.com/1.0/search?tagged=swing&nottagged=java

Here the response is reporting 149 total results, which is in agreement with what I'm currently seeing on site. The page size returned is 30, but I'm only getting back 29 questions.

http://api.stackoverflow.com/1.0/search?nottagged=php&tagged=curl

Here the total (290) and page size (30) in the response are also correct, but I'm only getting back 28 questions.

http://api.stackoverflow.com/1.0/search?tagged=curl&nottagged=perl

Here I'm only getting 27 questions returned in the first page of results when there are 894 in total.

Update:

It looks like there's been some progress (or this is mere coincidence) because when I run my tests again I get 29 questions in the result for the 3rd link instead of only 27.

share|improve this question
1  
Still no official answer on this one? Seems quite important to me! –  johnwards Jul 2 '10 at 8:04
    
bill - i show 30 for the 3rd link. –  Sky Sanders Jul 19 '10 at 16:54
    
@Bill 30 to me on the 3rd –  systempuntoout Jul 19 '10 at 18:04
    
@code, @system, @Kevin: I'm now getting 30 on the 1st and 3rd links, but still only 29 on the second. The pagesize value is correct (30), but only 29 questions are in the result. –  Bill the Lizard Jul 19 '10 at 19:28
1  
@kevin - confirmed - 2nd link shows 29 results. o.t. - bill, only the first @ is honored, the rest are ignored. –  Sky Sanders Jul 19 '10 at 19:34
1  
@Bill - that'll teach me to count... investigating. –  Kevin Montrose Jul 19 '10 at 19:35
    
@code: Thanks. You'd think I would know how this system works by now. :) –  Bill the Lizard Jul 19 '10 at 20:56
add comment

1 Answer 1

up vote 1 down vote accepted

Alright, I think I've finally crushed this one.

This bloody bug has been an albatross. Non-reproducible locally, intermittently reproducible on the database end... just gah, gah everywhere.

share|improve this answer
    
I had a feeling this one would be nasty when the test output started changing on its own. Thanks for killing it. –  Bill the Lizard Jul 29 '10 at 12:42
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .