Notice: We are now selling NEW Gelbooru Merch~! Domestic shipping is free on all orders! Do you have an artist tag on Gelbooru? Let us know so we can properly credit you!

Ticket Information - ID: #1099

ID:Category:SeverityReproducibilityDate SubmittedUpdated By:
0001099Bug ReportingLowalways02/18/21 10:19PMBRANLIX2000
Assigned to:geltas
View StatusPublic
Target Version:N/A
Summary:OR search doing strange things
Description:It has to be a search of this form : {tag_1 ~ ... ~ tag_n} -{tag_A -tag_B}
with n between 2 and 8 (didn't test with more but i guess it's the same)
ex: {tag_1 ~ tag_2 ~ tag_3} -{tag_A -tag_B}

This results in images that have at least one the tags of the {tag_1 ~ ... ~ tag_n} branch of the search AND that doesn't have the tag_A and not the tag_B at the same time (so there is still tag_A images, but only when there is tag_B with it) .
In the end, it seems like both {tag_1 ~ ... ~ tag_n} and -{tag_A -tag_B} "work"

However, if we do the same search but without the {tag_1 ~ ... ~ tag_n} branch, then the results will completly ignore the -{tag_A -tag_B}, as if it didn't exist.

I hope I explained it well enough.
Additional Info:putting {tag_1 ~ ... ~ tag_n} is the only way i've found to make -{tag_A -tag_B} work
also, -{-tag_A tag_B} doesn't work.
lozertuser replied at 2021-02-19 12:47:28
-{tag_A -tag_B}

This isn't valid syntax.

lozertuser replied at 2021-02-19 12:49:35
I'm unsure what you are asking for, but it seems like something like, you could do {tag1 ~ tag2 ~ tag3 ~...} -tag18 -tag19

BRANLIX2000 replied at 2021-02-19 14:39:05
uhh well, it's not actually a problem, just something curious I stumbled upon.

So -{tag_A -tag_B} is not supposed to work, sad.

well, the thing is, it does have an effect on search when there is something like {tag1 ~ tag2 ~ tag3 ~...} with it in the search.

it shows images that isn't "tag_A -tag_B"; without imposing the presence of any the said tags. It just removes images that have tag_A and not tag_B from the results.

and, not gonna lie, like I kinda like using it, since I don't think it is possible to reproduce it with OR search, since OR searches don't realy like hypens

My point was just to point it out, as I found curious that it has effects in that specific case, and not otherwise, so I thought it was maybe a bug or something like that.

I'm sorry if I didn't manage to make it clear enough