Lets say you have 2 movie files that have a $length of:
And you want to design a search that can return these as a potential dupe because of the similar length (amongst other characteristics). You might add a new column where you transform the $length into seconds and then round to the nearest second
Code: Select all
column1:=ROUND($length:/10000000.0)
However these 2 movies end up having just barely the wrong lengths:
And they don't show up as dupes because of how we've chosen to discretize our timeframes.
So we add another column with an offset of 0.5 before rounding:
Code: Select all
column2:=ROUND($length:/10000000.0+0.5)
Perfect, these end up having the same rounded lengths and would return as dupes:
And now you want to check if dupes are found on either column like so:
However, for some reason dupe does not work when combined with | operator. So my request is to either add a smart dupe mechanism where properties from both entity A and B are available for operations (like
ABS(length1-length2)<1
) or perhaps just allow dupe to work with OR operator so I can use my workaround.