About search (added picture description)

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
kuiwu_zh
Posts: 65
Joined: 24 May 2018 15:38

About search (added picture description)

Post by kuiwu_zh »

Question 1:

snap_screen_20210726172758.png

Code: Select all

ageM: 1 h

This expression can search for files.


snap_screen_20210726172853.png

Code: Select all

ageM: 1h

This expression cannot search for files.



Why? Thank you.








Question 2:

snap_screen_20210726143222.png

Code: Select all

ageM: <= 1 h

The options on this picture are equivalent to this expression.


snap_screen_20210726143249.png

What expression is equivalent to the options on this picture?



Thank you.
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

kuiwu_zh
Posts: 65
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: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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: 65
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: 67270
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @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