Dimension search peculiarities

Found a bug in "Everything"? report it here
meteorquake
Posts: 628
Joined: Thu Dec 15, 2016 9:44 pm

Dimension search peculiarities

Post by meteorquake »

Either a bug or something very unintuitive...
If I search dimensions: it only seems to do a "begins" match, or of the width element, whereas I want a "part" or ww: match of the whole. It's hard to pin down what it's actually doing.
(Basically, since I have the dimensions column showing, it makes sense to do a search on that rather than on width: height:)
d
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dimension search peculiarities

Post by void »

dimensions: will always do a whole match.

What searches have you tried any what results did you see?

Syntax is:
dimensions:
width
x
height

<
and
>
operators can be used, for example:
dimensions:>1920x1080
dimensions:<320x200

Use
..
for ranges:
dimensions:320x200..640x480



If you specify only the width, all heights will match.

For example:
dimensions:1920

will match:
1920x1080
1920x1200



dimensions:
meteorquake
Posts: 628
Joined: Thu Dec 15, 2016 9:44 pm

Re: Dimension search peculiarities

Post by meteorquake »

Basically I was doing a search for two dimensions which needed to be width and height in either order (obviously photos may be vertical or landscape), so 4608 x 3456 or 3456 x 4608, and so was doing a search for 4608 (since that would capture both and nothing else given my photo sizes).
I think orientation-agnostic searches are going to be quite common.
However

Code: Select all

dimension:"4608 x 3456"|dimension:"3456 x 4608"
doesn't work since dimension:"3456 x 4608" also captures "3456 x 2592" which is part of what I meant by the search being peculiar, so the results were more than I expected and I had to resort to using an equation with width: and height:
what could be useful would be to be able to use a syntax that ignores orientation e.g.
dimension:"4608&3456" or dimension:"?4608 x 3456" so as to find 4608 x 3456 or 3456 x 4608
or perhaps sizing:"4608 x 3456" with sizing: (or some such thing) ignoring orientation.
David
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dimension search peculiarities

Post by void »

Remove the space.

For example:

dimension:4608x3456|dimension:3456x4608


dimension:4608x3456;3456x4608


I will add support for spaces in the next alpha update.


dimension:"4608&3456"
I have put on my TODO list to add a single function to search dimension:4608x3456|dimension:3456x4608
Thank you for the suggestion.
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dimension search peculiarities

Post by void »

Please consider a short macro to search any orientation:
In Everything, from the Search menu, click Add to filters....
Change the Name to: Dimensions Any Orientation
Change the Search to:

Code: Select all

dimensions:[ELEMENT:$param:,"x",1]x[ELEMENT:$param:,"x",2];[ELEMENT:$param:,"x",2]x[ELEMENT:$param:,"x",1]
Change the Macro to: di
Click OK.

Now you can search for
di:4608x3456
which expands to:
dimension:4608x3456;3456x4608
void
Developer
Posts: 19899
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dimension search peculiarities

Post by void »

Everything 1.5.0.1401a will now eat the spaces in dimensions:"320 x 200"