Filter for content, how to mimic the extended search version?
-
abr01
- Posts: 205
- Joined: Tue May 01, 2018 4:57 pm
Filter for content, how to mimic the extended search version?
Using content:searchitem works from the search field. However, i'd like to use a filter, that has the content: argument, but if i type the item into the search field, no results are returned. Is there a way to use a function or filter, that only requires the query in the search field?
-
void
- Developer
- Posts: 19903
- Joined: Fri Oct 16, 2009 11:31 pm
Re: Filter for content, how to mimic the extended search version?
To create a filter to search file content with the text specified in the search box:
Enabling Tools -> Options -> Results -> Hide results when the search is empty might be beneficial.
- In Everything, from the Search menu, click Add to filters....
- Change the Name to: Content
- Change the Search to: content:search:
- Change the Macro to: mycontentmacro<search>
- Click OK.
Enabling Tools -> Options -> Results -> Hide results when the search is empty might be beneficial.
-
abr01
- Posts: 205
- Joined: Tue May 01, 2018 4:57 pm
Re: Filter for content, how to mimic the extended search version?
Thanks. It works well!