_I had originally posted this as an edit to #6791 but I realise now it's completely different to what I had originally suggested._
Change the Dashboard Search box (not 'Query', but rather the secondary 'Search' which filters the results) to two boxes, with Search becoming Refine and the new box being Remove (or something to that effect).
Example taken from OP:
When searching for a show called Huge, not surprisingly you get a lot of porn, and filtering by '2010' just gives you a lot of 2010 porn instead. Being able to tell Jackett to remove results containing 'XXX', or anything else, would be a great help.
or we could just implement a simple +string -string like most filters on web sites can do.
Apologies for my ignorance, but would that essentially be the user typing, to use the earlier example, -xxx
to remove all results with xxx
in the name (and + would just be assumed in all other cases)?
If so, that would be a step in the direction of my OP. I just worried that on its own it might clash with users trying to refine by release group (e.g. -EPSiLON
would remove results with EPSiLON
in the name, so =
and/or ~
would need to be implemented as well, or just ~!
). Or can you use +-EPSiLON
to refine by -EPSiLON
?
Sorry if this seems like I'm asking you to ELI5.
You basically have the right idea there. Any term starting with - will be excluded like your suggestion above. Any that start with + (or don't start with -) must be in the result.
Thanks for clearing that up.
So is +-EPSiLON
possible, as a way to refine by -EPSiLON
, rather than removing by EPSiLON
? Or would would the aforementioned operators need to be implemented as well (e.g. =-EPSiLON
)?
When this gets implemented, I think it would be sufficient to just add +-EPSiLON. Basically the parser would check each word for a first character of +/- remove the character, and add the term to the appropriate list. If neither are found, then it acts as if it started with + and just adds the term directly.
Sounds good to me!
Wildcards can wait for another day lol
This should be easy to do => https://datatables.net/examples/plug-ins/range_filtering.html
Update: We should add a tooltip to explain this feature.
I don't have much front-end experience, so I'll leave that to you @ngosang.
I really hope the negative filtering (-) to be looked into as it's a great feature to have!
Jackett 0.14.447
the plus is redundant as just adding a word in the search box is filtering in results with the word
and wildcards are not required as the search box does partials anyway.
@RoloSoze +string is working, although the only case I've found so far where it's actually useful is searching for -
i.e. type +-
and only results containing -
will appear (likewise --
removes results containing -
).
ngosang's comment (the one I linked to in the other thread), and my response to it, explains further about what can and can't be done.
Most helpful comment
or we could just implement a simple +string -string like most filters on web sites can do.