How to Create Complex Filters

Tagging Discussion » How to Create Complex Filters Search Posts
Background Pony #734A
I have seen refrences to complex filters, but for the life of me cant find any existing filters or even forum posts on how to create complex filters. I understand basic filters, but cant seem to manage the syntax for advanced. I tried using the same syntax as using the search bars, but that didn’t work. I have seen stuff like “safe, -meme.” But I doubt that’s correct for complex filters.  
What I want to do is block one tag while allowing it if it has another. For example, allow grimdark and explicit, but block grimdark if it doesn’t have the explicit tag as well. I hope that’s enough of an explanation.
Background Pony #734A
@Mildgyth  
I’m thinking that might work, I see since last time I tried, that examples were added. I’ll try modifying more of my filters to see if it does what I wish.
Ren
Sunset Shimmer - Derpi Supporter
Diamond -
Friendship, Art, and Magic (2017) - Celebrated Derpibooru's five year anniversary with friends.
Magnificent Metadata Maniac - #1 Assistant
A Perfectly Normal Pony - I hate white people, including myself.
Happy Derpy! - For Patreon supporters
Silver Supporter - Silver Patron
Artist -

is he alive?
The syntax is indeed the same, as it’s running on the same language. If you ever second-guess yourself on the syntax, check this page for what to do. (You can press the ? on the far right of the search bar to access this page from anywhere on the site.)
 
When editing your complex filters, be sure that you separate your requests. For example, if you’re trying to filter out suggestive images with huge breasts as well as safe images with ocs, you’d separate them like so:  
(suggestive, huge breasts) || (safe, oc) or  
(suggestive, huge breasts) OR (safe, oc) etc.  
The parentheses are not necessary in this case, but I find they’re helpful when trying to read what you’ve put.
Zebasiz
Bronze Bit -
Friendly Griffon - For helping others attend the fifth anniversary party
Friendship, Art, and Magic (2017) - Celebrated Derpibooru's five year anniversary with friends.
A Perfectly Normal Pony - <Zeb> That's why yer female partner can use a trapon
Magnificent Metadata Maniac - #1 Assistant
Artist -

Another note: Having the same tags in the regular filters as the complex ones can sometimes screw it up. So if you’re still having trouble, make sure you don’t have any tags in your regular filter list that could interfere.
Background Pony #734A
I tried “(grimdark || grotesque || semi-grimdark || NOT explicit)” but it just blocked everything with those tags. Do I need to separate them into separate not/or statements or..?
Background Pony #734A
Saw a mistake and fixed what might have caused it.  
Trying “(((grimdark || grotesque || semi-grimdark) && NOT explicit))”
Background Pony #734A
I think that accomplished what I’m after. One last question. Do I have to many nested ()? It looks odd how I have it right now.  
@Zebasiz  
I don’t have them blocked, just spoilered.
Ren
Sunset Shimmer - Derpi Supporter
Diamond -
Friendship, Art, and Magic (2017) - Celebrated Derpibooru's five year anniversary with friends.
Magnificent Metadata Maniac - #1 Assistant
A Perfectly Normal Pony - I hate white people, including myself.
Happy Derpy! - For Patreon supporters
Silver Supporter - Silver Patron
Artist -

is he alive?
You don’t need to double-nest the whole thing, that’s for sure. Remove one set of parentheses from the ends.
Ember The Fire Burd
Top Birb - For Patreon supporters
Daring Do Dakimakura - Attended a Derpibooru panel at a MLP convention
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
Bronze Bit -
Ruby -
Economist -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Not a Llama - Happy April Fools Day!
Happy Derpy! - For Patreon supporters

1/3rd phoenix ;)
I’m looking for some help in getting a complex filter to work. I’ve read thru the syntax guide but I feel I’m overlooking something simple in how to enter it into the complex filter to have it work correctly. I’m trying to filter out all images tagged anthro, but I want to show any images that are also tagged griffon, such as anthro, griffon. How do I enter it in the filter so that it filters in the right order? Does one of the terms have to have the NOT operator in place?  
Any help is really appreciated!
Ember The Fire Burd
Top Birb - For Patreon supporters
Daring Do Dakimakura - Attended a Derpibooru panel at a MLP convention
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
Bronze Bit -
Ruby -
Economist -
Friendship, Art, and Magic (2019) - Celebrated Derpibooru's seventh year anniversary with friends.
Magical Inkwell - Wrote MLP fanfiction consisting of at least around 1.5k words, and has a verified link to the platform of their choice
Not a Llama - Happy April Fools Day!
Happy Derpy! - For Patreon supporters

1/3rd phoenix ;)
I’m having some problems getting my complex filter to work right. I had this issue a few months back and I thought it was resolved, but I’ve come across a few images that I know should’ve been shown but were filtered out.
 
For example, my complex filter has anthro, NOT griffon in it, which I thought would filter out all images tagged anthro, but show those that were also tagged griffon.
 
Take this pic for example >>2196319. With my filter set as above, this image was hidden, but it was tagged griffon so shouldn’t it have been shown anyways? I feel like I’m overlooking something simple here to get this to work but the syntax guide only confuses me more when I’m reading about the negation operators and such…
 
 
EDIT: It seems to work with some images and not others so maybe there’s another tag interfering? I’m gonna try using a character name tag too and see if it picks it up then.
Starry Mind
My Little Pony - 1992 Edition
Friendship, Art, and Magic (2020) - Took part in the 2020 Community Collab
Wallet After Summer Sale -
Artist -
Not a Llama - Happy April Fools Day!

Take pride. 🌈
@Ember The FireBurd  
I think you’re right. The filter seems good to me, but if some of those images are being hidden, you probably have some other terms filtered out.
 
I have an idea. Try copying the stuff from your complex filter box to somewhere safe, and replacing what’s in the box with
anthro, NOT griffon
 
If the images suddenly start to pop up, you can tell that you made a mistake somewhere in your complex filter box. If they stay hidden, it’s a mistake in your “easy” filters box.
Interested in advertising on Derpibooru? Click here for information!
Techy Cutie Pony Collection!

Help fund the $15 daily operational cost of Derpibooru - support us financially!

Syntax quick reference: **bold** *italic* ||hide text|| `code` __underline__ ~~strike~~ ^sup^ %sub%

Detailed syntax guide