Hi!
How can I search for a given string in any of the indexed properties?
A replacement for "tags:MyString|comment:MyString|subject:MyString| . . .", something like "property:MyString"
Thanks, Laus
Marco to search in any property
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Marco to search in any property
Please try creating a filter:
property:"My String"
It is replaced with:
tags:"My String"|comment:"My String"|subject:"My String"
- In Everything, from the Search menu, click Add to filters.
- Change the Name to:
My Property Search - Change the Search to:
tags:search:|comment:search:|subject:search: - Change the Macro to:
property<search> - Click OK.
property:"My String"
It is replaced with:
tags:"My String"|comment:"My String"|subject:"My String"
-
Laus
- Posts: 21
- Joined: Sun Jul 04, 2021 11:44 am
Re: Marco to search in any property
Hi Void,
So your saying Everything will expand a user defined filter anyway before executing the search?
Then it seams easier to me to build the search phrase in a def in my python wrapper for the python SDK.
Thanks, Laus
So your saying Everything will expand a user defined filter anyway before executing the search?
Then it seams easier to me to build the search phrase in a def in my python wrapper for the python SDK.
Thanks, Laus
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Marco to search in any property
Sorry I missed your reply Laus,
Yes, Everything will expand macros before the search is executed.
If the filter is active, the entire search string is used as the parameter to your macro.
Yes, Everything will expand macros before the search is executed.
If the filter is active, the entire search string is used as the parameter to your macro.