Donmai

how to search posts excluding two specific tags combined?

Posted under General

i want to filter out posts that have two particular tags together in it? but not the tags individually, like "+-ai_generated+-male_only+-gay+-male_on_male+-male%2fmale+-solo_male", the tags "male" and "solo" should be filtered out if used together in a post but not individually. posts that contain "solo" or "male" are allowed but not for posts that have these tags in combination. is this possible?

ANON_TOKYO said:

You can use parentheses and negations together, so 1girl -(long_hair solo) would exclude 1girl posts that are also tagged with long_hair and solo. That's for searches though, blacklist is a lot more restricted and I'm not entirely sure how you'd neatly go about this there.

For your example, you would just add 1girl long_hair solo to the same line. All posts containing all three tags would be hidden.

We don't have a "male" tag, but if you wanted to hide posts containing both solo and male_focus then you would just add solo male_focus to the same line in the blacklist. Posts containing one or the other will still be visible. Solo 1boy also probably works, but I'm not sure what kind of outliers either of these examples might come up with.

Updated

blindVigil said:

For your example, you would just add 1girl long_hair solo to the same line. All posts containing all three tags would be hidden.

We don't have a "male" tag, but if you wanted to hide posts containing both solo and male_focus then you would just add solo male_focus to the same line in the blacklist. Posts containing one or the other will still be visible. Solo 1boy also probably works, but I'm not sure what kind of outliers either of these examples might come up with.

For example for https://rule34.xxx/index.php?page=post&s=list&tags=pokemon+-ai_generated+-male_only+-gay+-male%2fmale+-solo_male+-yaoi

I will still get images that have "male" and "solo" in them together, so I will still get gay stuff. My goal is to filter them out only for posts that use these tags together. Since tons of gay posts are tagged "male" and "solo" simultaneously. But obviously i still want heterosexual posts that have "male" OR "solo" in them. Since heterosexual posts have males in them or solo females.

ForxBase said:

does it work on rule34.xxx or danbooru?

This is Danbooru. It does work here if your membership level is Gold or higher, but regular members like you can only search for two tags at a time, which is why I said ANON TOKYO’s search suggestion wouldn’t work for you.

We are not affiliated with the other boorus. The best way to find out how those sites work is to try using them yourself, and it seems like you already did. However, I can say it will probably work on Gelbooru.

Updated

Searches using parentheses are a functionality unique to danbooru and other boorus that share our recent codebase. rule34 and gelbooru use different software, that syntax won't work for them, so there's no way to do what you're trying to achieve on those sites.

nonamethanks said:

Searches using parentheses are a functionality unique to danbooru and other boorus that share our recent codebase. rule34 and gelbooru use different software, that syntax won't work for them, so there's no way to do what you're trying to achieve on those sites.

I thought they were asking about the tag limit and forgot about the parentheses part, though I will say I didn’t know the parentheses couldn’t be used on those sites. Good to know.

1