5

A user asked about the Stack Overflow API.

After some digging, I found a few ways to answer how many questions are tagged airflow.

Why is there a discrepancy between the count and the total? Could it be synonyms?

1

1 Answer 1

7

It's certainly easier to see what's going on if you try a tag with fewer questions (or indeed a site that has fewer questions so that the tags automatically have fewer questions).

In Vegetarianism and Veganism we have some suitable tags where we can just count the tagged posts if we need to.

On that site the tag has 4 questions and the tag has 11 questions. is a synonym of and if you display questions tagged travel, you'll see there are 15 questions.

The questions API for questions tagged travel returns 15 i.e. the total number including synonyms

Whereas if you query the travel tag you'll get 11

If you replace travel by traveling in the above queries you'll just get the values from the travel tag i.e. 15 and 11 respectively.

Presumably if the tags were merged rather than just synonymised, there would be only one tag and therefore only one value.

Regarding the here if we look at the tag synonyms page and type in airflow, we'll see this row - the only one where the synonym has numbers against it...

synonym target creator created # of Renames Last Renamed
airflow-scheduler × 1253 airflow × 10263 Jarek Potiuk Aug 10, 2021 381 2d ago

and 1253 + 10263 = 11516 i.e. the numbers pretty much match up to what you'd now expect.

3
  • 1
    The totals still don't quite make sense... In that, yes 1253 + 10263 is 11516, but there only appears to be 37 questions (at least as of the last SEDE update) that have the [airflow-scheduler] but do not have the [airflow] tag. Given this, we'd only expect the total number of [airflow] questions including synonyms to be 37 more than the number of questions tagged [airflow] alone which is nowhere near the more than a thousand difference.
    – Henry Ecker Mod
    Commented Nov 5, 2023 at 4:46
  • 1
    It seems likely that you are correct and that these individual tag totals are being added together to get the 11509 number, but it really doesn't make sense to calculate the total this way since there can be many questions that have both tags... unless I'm missing something? These totals seem more accurate to the real number of questions represented by the airflow tag.
    – Henry Ecker Mod
    Commented Nov 5, 2023 at 4:49
  • 2
    @HenryEcker indeed it doesn't make much sense to report synonyms this way. Perhaps there are questions that had airflow-scheduler and airflow before the synonymisation. Commented Nov 5, 2023 at 7:12

You must log in to answer this question.

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