Topic: Search Syntax Help

Posted under Site Bug Reports & Feature Requests

Hey, I use the "~tag_a ~tag_b" syntax quite often to have a sort of compilation of my favorites, but one major flaw that I run into is that all the conditional statements are applied at once. Is there any way for me to have multiple groups of tags displayed in one search page? For example, if I wanted to see something like "anthro ~knotting ~pregnant" and "species_transformation ~artist1 ~artist 2" simultaneously but typed in all of those tags at once, it would only show me things that contain both anthro AND species_transformation, as well as at least one of knotting, pregnant, artist1, or artist2. It would be really useful if there was a way to frame the two as separate but simultaneous searches, like surrounding the two chunks in parenthesis to indicate that they're separate from each other. Does anyone know if this is already a feature, or if not, whether it would be realistic to implement?

Unfortunately not supported by e621, but there is a pretty nifty userscript by DefinitelyNotAFurry4 that implements it as a feature. Details at topic #40732.

faucet said:
Unfortunately not supported by e621, but there is a pretty nifty userscript by DefinitelyNotAFurry4 that implements it as a feature. Details at topic #40732.

Unfortunately one thing with this is that favorites is slightly busted due to how my api works and that it doesn't get any user data. Fetching all favorites takes a long time. I'm not sure if my userscript even supports getting the second page of favorites either. There's not really any way around this either since there's no user db export (for good reason) and indexing every user's favorites would take way too long.

What's in my userscript is actually a kind of placebo, and I didn't realize it when I was making it, but it has 2 major flaws:
1. It only gets the first page of favorites which is pretty much useless
2. Even if it did fetch all favorites, after 4096 favorites, the search engine wouldn't work as each favorite needs to be put in the search (again since my db doesn't know who favorites what) and due to memory usage, I capped the number of tokens to 4096

Theoretically I can implement my entire search syntax locally and fetch favorites as needed, but it would be somewhat difficult

Updated

  • 1