Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tagged posts only show up in it's in the first five tags #77

Open
ApolloMeister opened this issue Mar 3, 2022 · 6 comments
Open

tagged posts only show up in it's in the first five tags #77

ApolloMeister opened this issue Mar 3, 2022 · 6 comments

Comments

@ApolloMeister
Copy link

Is this expected behaviour? I thought that taggedPosts would be able to retrieve all posts that have a certain tag regardless if it was in the first five tags, but that does not seem to be the case. I used the api console to confirm this and this seems to be the behaviour. Recent tags only show up if said tag (for anyone wondering, i'm tracking writeblrcafe) is in the first five tags. So is this expected behaviour or a bug?

@AprilSylph
Copy link
Member

This article states that the first 20 tags should be indexed for searches, but I can't find anything mentioning how many tags count for the /v2/tagged endpoint (or https://www.tumblr.com/tagged/ pages, which I believe use the same data with extra spam filtering on top). It definitely used to be 5 tags, but the Help Center has nothing to confirm or deny it.

@cyle
Copy link
Member

cyle commented Mar 4, 2022

hey @ApolloMeister -- can you be more specific about what API endpoint you're hitting and seeing this result? some examples of API requests and the results you're seeing versus what you expect would be helpful. from my understanding, it should be the first 20 tags, as @AprilSylph pointed out.

@ApolloMeister
Copy link
Author

ApolloMeister commented Mar 4, 2022

https://glitteryteenpoems.tumblr.com/post/677741762845048832/without-but-missing-nothing okay, so this post has the tag #writeblcafe in the seventh tag, so it should be accessible correct?

and on the tumblr search page, it does show up as the second result

proofs

but when we go to https://api.tumblr.com/console/calls/tag/tagged or make acall on the taggedPosts api (using tumblr.js) that post does not show up.

proofs

this is the first result, and the second result is:
proof3

when that is the third result on the search page. i did a search for that 'missing post' but cannot find it in returned JSON. I did not want to post the entire resulting json since it's long, but I hope this illuminates what's going on.

oriiss like to my understanding, that post should be available here, but it's not

Another example, updated on march 7, 2022

At the time of posting: https://api.tumblr.com/v2/tagged?tag=writeblrcafe&api_key={mykey}

contains the following posts:
677983888571826176
677934259900645376
677926903120887808
677926042312294400
677865252517445632
677763716286169088
677684584577712128
677653715906396160
677648763355037696
677647527720468480
677471815671726080
677461024587251712
677347337319923712
677267050603888640
677192757375270912
676969515790303232
676879531595972608
676851947019681792
676839868679290880
676550752331857920

but not 678073241141690368 ( https://dyphaegrayi.tumblr.com/post/678073241141690368/sappho )

which was posted 1 hour ago, and should be in the json, from my understanding, however, it uses #writeblrcafe in the 18th tag, and I believe that's why it's not showing up in the json.

To my understanding the api console & tumblr.js, when using tagged api, it only returns posts with whatever hashtag, as long as that hashtag is in the first five hashtags, this seems to deviate from the search function (which shows posts as long as it is contained in the first 20 tags)

@ApolloMeister ApolloMeister changed the title taggedPosts only show up in it's in the first five tags tagged posts only show up in it's in the first five tags Mar 4, 2022
@cyle
Copy link
Member

cyle commented Mar 7, 2022

Okay thanks, that helps a lot! Under the hood, taggedPosts is calling GET /v2/tagged, which is not the same as Search on Tumblr, it's actually closer to the Tagged page (i.e. tumblr.com/tagged/writeblrcafe?sort=recent), which has slightly different rules than Search, and I can find the post you're talking about on the 2nd page of that tag's Recent list.

What's more important though is that the public GET /v2/tagged API endpoint that's documented is not the same thing that's powering the Tagged page on web or in the apps, so the results could be slightly different, as you're seeing here. Regardless, each of these ways of getting posts-by-tag have various filtering rules applied to them, and some deduplication rules as well, so no one blog can "take over" the whole list. i'm not sure exactly what's happening in your case -- the best thing to do when there's a post not showing up in the tagged pages as you expect is to file a Support request. It's possible that post is being filtered out for some reason, and the Support folks can help figure that out. (And we don't currently provide a way to get a totally unfiltered list of posts-by-tag across all of Tumblr.)

@sorin-costea
Copy link

Could it be that the tag was added some time AFTER posting? Like, indexing happens only when you post and whatever you add/remove after that gets ignored?

@cyle
Copy link
Member

cyle commented May 27, 2022

Editing a post to add/remove a tag triggers indexing it for that tag, so that shouldn't be an issue.

cyle added a commit that referenced this issue Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@cyle @sorin-costea @AprilSylph @ApolloMeister and others