About search (added picture description)

Things you’d like to miss in the future...
Post Reply
kuiwu_zh
Posts: 42
Joined: 24 May 2018 15:38

About search (added picture description)

Post by kuiwu_zh »

Question 1:

snap_screen_20210726172758.png
snap_screen_20210726172758.png (47.1 KiB) Viewed 907 times

Code: Select all

ageM: 1 h

This expression can search for files.


snap_screen_20210726172853.png
snap_screen_20210726172853.png (43.03 KiB) Viewed 907 times

Code: Select all

ageM: 1h

This expression cannot search for files.



Why? Thank you.








Question 2:

snap_screen_20210726143222.png
snap_screen_20210726143222.png (12.06 KiB) Viewed 930 times

Code: Select all

ageM: <= 1 h

The options on this picture are equivalent to this expression.


snap_screen_20210726143249.png
snap_screen_20210726143249.png (11.88 KiB) Viewed 930 times

What expression is equivalent to the options on this picture?



Thank you.

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: About search (added picture description)

Post by admin »

Question 1: This is how the syntax is defined: there MUST be a space between counter and unit.

highend
Posts: 13260
Joined: 06 Feb 2011 00:33

Re: About search (added picture description)

Post by highend »

Why isn't it the same for sizes? 1MB is a valid expression
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

kuiwu_zh
Posts: 42
Joined: 24 May 2018 15:38

Re: About search (added picture description)

Post by kuiwu_zh »

But I tested that the result of the following expression is the same.

Code: Select all

:*.cpp AND ageM: <= 1h
:*.cpp AND ageM: <=1 h
:*.cpp AND ageM:<= 1 h
:*.cpp AND ageM:<=1h

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: About search (added picture description)

Post by admin »

kuiwu_zh wrote: 28 Jul 2021 10:54 But I tested that the result of the following expression is the same.

Code: Select all

:*.cpp AND ageM: <= 1h
:*.cpp AND ageM: <=1 h
:*.cpp AND ageM:<= 1 h
:*.cpp AND ageM:<=1h
Maybe the same but WRONG. When the space is missing the unit will fall back to *days*, not hours.

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: About search (added picture description)

Post by admin »

But relax. I just added a bit of tolerance. From the next beta onwards that space is optional.

kuiwu_zh
Posts: 42
Joined: 24 May 2018 15:38

Re: About search (added picture description)

Post by kuiwu_zh »

I see. Thank you.

How do I write the expression of Question 2?

admin
Site Admin
Posts: 60288
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: About search (added picture description)

Post by admin »

kuiwu_zh wrote: 28 Jul 2021 11:21 How do I write the expression of Question 2?
Good question. These terms are always treated as "start of unit", so it's only possible by changing the unit. Instead of "1 d" you can use "24 h" or "1440 n" depending on how exact you want it to be.

Post Reply