Heuristic matching

Have a suggestion for "Everything"? Please post it here.
Post Reply
Link
Posts: 21
Joined: Thu Nov 03, 2011 10:08 pm

Heuristic matching

Post by Link »

Can you please implement heuristic matching so files like these will be grouped together and highlighted?

Could use a command of "sameof:"

Code: Select all

Superman.and.Lois.S01E01.Pilot.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E02.Heritage.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E03.The.Perks.of.Not.Being.a.Wallflower.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E04.Haywire.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E05.The.Best.of.Smallville.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E06.Broken.Trust.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E07.Man.of.Steel.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E08.Holding.the.Wrench.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E09.Loyal.Subjekts.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E10.720p.HDTV.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E11.720p.HDTV.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E12.720p.HDTV.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E13.Fail.Safe.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E14.The.Eradicator.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
Superman.and.Lois.S01E15.Last.Sons.of.Krypton.720p.10bit.WEBRip.2CH.x265.HEVC-PSA.mkv
therube
Posts: 5063
Joined: Thu Sep 03, 2009 6:48 pm

Re: Heuristic matching

Post by therube »

Not quite sure what you're looking for, but...
Everything | Options | General -> View --> Show highlighted search terms

might cover part of what you want.

Of course how that may play out would depend on your search terms & sorting...
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Heuristic matching

Post by raccoon »

Link wrote: Fri Oct 01, 2021 10:34 amCan you please implement heuristic matching so files like these will be grouped together and highlighted?
Do you have any special rules or considerations you want to include? Here's a simple solution that might work for you.

This only works in v1.5+:
file:regex:"^(.*?)[. -]S\d\d" sort:regularexpressionmatch0


Defined: Search only files, for the regular expression pattern "strings that appear left of the letter S followed by 2+ a digit number" and then group these results together sorted by that pattern match.

In theory, you don't actually need
sort:regularexpressionmatch0
but you can expand on this to do more with that column later.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Heuristic matching

Post by NotNull »

Maybe this works for you? :

Sort results by Name and search for
regex:S\d\dE\d\d
or
regex:.S\d\dE\d\d


(In the first one files like "S01E01 Some stuff.mkv" will also be found (starting with SnnEnn)
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: Heuristic matching

Post by harryray2 »

Could you please do a breakdown of the two terms? Thanks
Mizufluffy
Posts: 62
Joined: Sun Jun 13, 2021 10:22 am

Re: Heuristic matching

Post by Mizufluffy »

harryray2 wrote: Mon Oct 04, 2021 7:08 pm Could you please do a breakdown of the two terms? Thanks

Code: Select all

regex:S\d\dE\d\d
S - Matches letter S
\d - Matches a digit
E - Matches letter E
So it has S, two digits, E and two digits, for example S01E01

Code: Select all

regex:.S\d\dE\d\d
Very similar to previous one but it has . at the beginning.
. - Matches any character except for line terminators
Post Reply