Skip to main content

Why there is there a difference between "questions" and "search" in API?

I have thea query to find the number of questionquestions tagged java from 2012-08-01 to 2013-08-01. Running this using both in question API/questions and search API./search produces different results:

https://api.stackexchange.com/2.1/questions?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

https://api.stackexchange.com/2.1/questions?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":511058,"total":511058,"quota_remaining":245,"quota_max":300,"has_more":false}

https://api.stackexchange.com/2.1/search?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

https://api.stackexchange.com/2.1/search?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":540960,"total":540960,"quota_remaining":246,"quota_max":300,"has_more":false}

Since botht he query isBoth queries are searching for question number withthe same questions over the same time intervalinterval; why there is a difference in total do the results apparently differ?

Why there is a difference between "questions" and "search" in API?

I have the query to find the number of question tagged java from 2012-08-01 to 2013-08-01 both in question API and search API.

https://api.stackexchange.com/2.1/questions?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":511058,"quota_remaining":245,"quota_max":300,"has_more":false}

https://api.stackexchange.com/2.1/search?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":540960,"quota_remaining":246,"quota_max":300,"has_more":false}

Since botht he query is searching for question number with same time interval why there is a difference in total ?

Why is there a difference between "questions" and "search" in API?

I have a query to find the number of questions tagged from 2012-08-01 to 2013-08-01. Running this using both /questions and /search produces different results:

https://api.stackexchange.com/2.1/questions?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":511058,"quota_remaining":245,"quota_max":300,"has_more":false}

https://api.stackexchange.com/2.1/search?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":540960,"quota_remaining":246,"quota_max":300,"has_more":false}

Both queries are searching for the same questions over the same time interval; why do the results apparently differ?

Source Link

Why there is a difference between "questions" and "search" in API?

I have the query to find the number of question tagged java from 2012-08-01 to 2013-08-01 both in question API and search API.

https://api.stackexchange.com/2.1/questions?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":511058,"quota_remaining":245,"quota_max":300,"has_more":false}

https://api.stackexchange.com/2.1/search?todate=1387929600&order=desc&sort=activity&tagged=java&site=stackoverflow&filter=!--btTJ2LtJpU

{"total":540960,"quota_remaining":246,"quota_max":300,"has_more":false}

Since botht he query is searching for question number with same time interval why there is a difference in total ?