Advanced Search: Option to show the equivalent search text

Have a suggestion for "Everything"? Please post it here.
Post Reply
incans
Posts: 4
Joined: Sun Nov 03, 2024 3:48 pm

Advanced Search: Option to show the equivalent search text

Post by incans »

I am hoping to use the Anything CLI in conjunction with Powershell scripts for some admin tasks.

I haven't yet worked out from the Anything documentation how to specify a search for an arbitrary time range e.g. "files created or changed in the last 1200 seconds".

The Advanced Search UI supports date range searches equivalent to (e.g) "changes between <yesterday> and <today>", so this kind of search is possible, I just need to work out the syntax.

It would be very helpful if the Advanced Search UI had an option to display the search string that is equivalent to the search that is set up on the Advanced Search options. This would make the Advanced Search UI also work as an "interactive query builder" tool.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Advanced Search: Option to show the equivalent search text

Post by NotNull »

incans wrote: Sun Nov 03, 2024 4:17 pm I haven't yet worked out from the Anything documentation how to ...
Take a look at the Everything documentation instead ;)

It can be found online here (and more specific under Date Syntax and Date Constants) and also through the menu (Menu => Help => Search Syntax)
Using that, you will likely find that dm:last1200sec or dm:last20min give the expected results.

incans wrote: Sun Nov 03, 2024 4:17 pm It would be very helpful if the Advanced Search UI had an option to display the search string that is equivalent to the search that is set up on the Advanced Search options.
After you press the OK button in Advanced Search, the selectd settings will be converted to Everything Search Syntax in the search bar.
incans
Posts: 4
Joined: Sun Nov 03, 2024 3:48 pm

Re: Advanced Search: Option to show the equivalent search text

Post by incans »

Yes, thanks. I found the "last1200sec" filter type in the docs after I posted the question, so that was a bad example. A more general date range filter is a better example. I had not grasped the "function" descriptions in the help, but then I also hadn't realised this point-

>> After you press the OK button in Advanced Search, the selected settings will be converted to Everything Search Syntax in the search bar

That's exactly the "syntax wizard" type facility i was asking about of course, and once I saw the example it made perfect sense. I have to say as a brand new user of the tool I am very impressed, and rather annoyed I didn't know about it before.
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Advanced Search: Option to show the equivalent search text

Post by NotNull »

incans wrote: Tue Nov 05, 2024 7:28 pm I have to say as a brand new user of the tool I am very impressed, and rather annoyed I didn't know about it before.
Prepare to be impressed and annoyed many times in the near future :D
(Everything has lots of nice features and clever solutions that aren't obvious at first glance)
Post Reply