Preset / favor Windows Search Index
Preset / favor Windows Search Index
Hi,
is there a setting to use the Windows Search index always, without using the si: prefix?
Oliver
is there a setting to use the Windows Search index always, without using the si: prefix?
Oliver
Re: Preset / favor Windows Search Index
Can you please elaborate?
Re: Preset / favor Windows Search Index
I would like to work mainly / by default with the Windows Search Index, as I can do since 1.5.0.1258a by using the si: / systemindex: prefix.
Windows Search works really good, but Microsoft crippled the user interface with 1909 aka 19H2 by removing instant results, syntax highlighting, date range search etc...
Windows Search works really good, but Microsoft crippled the user interface with 1909 aka 19H2 by removing instant results, syntax highlighting, date range search etc...
Re: Preset / favor Windows Search Index
See @voids post here about Creating a Filter that uses the #replace-terms: preprocessor command.
#replaceterms:#(:search:#):,#(:si:#term:#):
#replaceterms:#(:search:#):,#(:si:#term:#):
Last edited by void on Tue Jan 30, 2024 10:21 am, edited 1 time in total.
Reason: fixed link
Reason: fixed link
Re: Preset / favor Windows Search Index
The #replace-terms: preprocessor command might be overkill here.
(si: generally searches filenames already)
Please try a System Index filter:
Alternatively, for more control, please try the #replace-terms: preprocessor command with your Filename or System Index filter:
(si: generally searches filenames already)
Please try a System Index filter:
- In Everything, from the Search menu, click Add to filters....
- Set the Name to:
System Index - Change the Search to:
si:<search:> - Change the Macro to:
simacro<search> - Click OK.
Alternatively, for more control, please try the #replace-terms: preprocessor command with your Filename or System Index filter:
- In Everything, from the Search menu, click Add to filters....
- Set the Name to:
Filename or System Index - Change the Search to:
#replaceterms:#(:search:#):,#(:<#term:|si:#term:>#): - Change the Macro to:
filenameorsi<search> - Click OK.
Re: Preset / favor Windows Search Index
neither of both works here (using 1.5.0.1294a).void wrote: ↑Wed Jan 05, 2022 12:21 am Please try a System Index filter:
[...]
Alternatively, for more control, please try the #replace-terms:
I have to admit that I can't follow the syntax of the example. Is there a comprehensive explanation of all the escape, grouping and expansion rules like in "#(:" etc?
I also didn't find the documentation for the "simacro<search>" syntax yet I thing I got it:
After some experimenting using the debug console, I found that si:<search:> outputs < and > in the search term, for example, 'foo' expands to 'si:<foo>' instead of 'si:foo'. So this can't work.
With 'si:search:' in the filte, 'foo' expands to 'si:foo' as wanted.
But 'foo bar' expands to 'si:foo bar'. In Windows Search, 'foo bar' would serach for both 'foo' and 'bar' in content and name.
I don't understand the replace-terms example and can't reproduce it. The debug console doesn't seem to show the output of the Preprocessor, correct?
Oliver
Re: Preset / favor Windows Search Index
Thank you for your reply Oliver,
space = AND
| = OR
! = NOT
< > = Grouping
" " = Search for an exact phrase.
Preprocessor Syntax
si:<foo> will expand to si:foo
si:<abc 123> will expand to si:abc si:123
Please make sure your filter search is:
si:<search:>
#replace-terms: is currently broken.
Expanded text is shown in the debug console, usually as expanded: <expaned-search>
Expansion appears to be breaking at the |
I am working on a fix.
Basic Everything syntax is:I have to admit that I can't follow the syntax of the example. Is there a comprehensive explanation of all the escape, grouping and expansion rules like in "#(:" etc?
space = AND
| = OR
! = NOT
< > = Grouping
" " = Search for an exact phrase.
Preprocessor Syntax
Everything will use group expansion here.si:<foo>
si:<foo> will expand to si:foo
si:<abc 123> will expand to si:abc si:123
Please make sure your filter search is:
si:<search:>
#replace-terms: is currently broken.
Expanded text is shown in the debug console, usually as expanded: <expaned-search>
Expansion appears to be breaking at the |
I am working on a fix.
Re: Preset / favor Windows Search Index
There's currently a bug with Everything not parsing the entire new term.
This will be fixed in the next update.
Please use double quotes to parse the entire new term:
This will be fixed in the next update.
Please use double quotes to parse the entire new term:
- In Everything, from the Search menu, click Add to filters....
- Set the Name to:
Filename or System Index - Change the Search to:
#replaceterms:#(:search:#):,#(:"<#term:|si:#term:>"#):
Note: the addition of double quotes (") - Change the Macro to:
filenameorsi<search> - Click OK.
Re: Preset / favor Windows Search Index
thanks for the link.void wrote: ↑Thu Jan 06, 2022 1:10 am Everything will use group expansion here.
si:<foo> will expand to si:foo
si:<abc 123> will expand to si:abc si:123
This was helpful. Group expansion doesn't seem to work with space as delimiter:
Code: Select all
search 'foo<bar|baz>' filter '' sort 5 ascending 0
group expand foo<bar|baz> => <foobar | foobaz>
expanded: <foobar | foobaz>
parse flags 00000000 type 20c01100
TERM foobar
parse flags 00000000 type 20c01100
TERM foobaz
Code: Select all
search 'foo<bar baz>' filter '' sort 5 ascending 0
parse flags 00000000 type 20c01100
TERM foo<bar
parse flags 00000000 type 20c01100
TERM baz>
This doesn't work even with a single phrase: Entering 'foobar' results then in
Code: Select all
search 'si:<foobar>' filter '' sort 5 ascending 0
TERM foobar
BTW: I see that it might be better to pass the whole entry to Windows Search, which seems to be simple:
'si:"search:"'
The downside is that I can't combine it with other Everything syntax, but the advantage is that I can use the complete Windows Search syntax.
Oliver
Re: Preset / favor Windows Search Index
Thanks for your reply Oliver,
I understand the issue now, Everything has flagged the si: search function with sub-expression support.
However, sub-expressions are not supported and the < > sub-expression is completely ignored.
Functions that do not support sub-expressions use group expansion instead.
Ideally, this is what si: should do. (and also with support for spaces)
This will be fixed in the next alpha update so you can use the full Everything syntax, eg: si:<abc 123 foo|bar !not-this-value>
For now, si:"search:" should do the trick without support for the Everything syntax.
I understand the issue now, Everything has flagged the si: search function with sub-expression support.
However, sub-expressions are not supported and the < > sub-expression is completely ignored.
Functions that do not support sub-expressions use group expansion instead.
Ideally, this is what si: should do. (and also with support for spaces)
This will be fixed in the next alpha update so you can use the full Everything syntax, eg: si:<abc 123 foo|bar !not-this-value>
For now, si:"search:" should do the trick without support for the Everything syntax.
Re: Preset / favor Windows Search Index
this fulfills my demand of a Windows Search front-end with "search as you type" ("instant") results.
As I wrote in our initial contact 2021-07-04 (different e-mail address), I find Windows Search to be a such great thing and I depend on it all the day (before Windows 7, i used Copernic).
I still don't understand why so few users knew or appreciated it.
And it's an incredible pity that Microsoft has hidden and crippled Windows Search more and more over the years.
The assignment of Win-F (is MS kidding, who the f*** needs a hotkey for the feedback hub?) could be undone easily, but the loss of instant results in version 1909/19H2 was a show stopper.
I usually retrieve documents from my huge data collection by opening a search prompt and starting to type until the list is short enough, therefore "instant results" are essential.
Another nice feature of the old Windows Search frontend was the date picker, easily allowing to select a date range. And the syntax coloring.
Oliver
P.S.: Initially, I used the Feedback Hub to complain about the Win-F hotkey. However, that apparently didn't help.
Re: Preset / favor Windows Search Index
Everything 1.5.0.1295a fixes an issue with expanding a si:<> group.
The si: search function is no longer flagged as having sub-expression support.
Everything will now use group expansion for si:<>.
Everything will also allow spaces in the group expansion for si:.
For example:
si:<abc 123 foo|bar !not-this-value>
expands to:
<si:abc si:123 si:foo|si:bar !si:not-this-value>
Filters using the following search should now work as expected:
si:<search:>
Everything 1.5.0.1295a also fixes an issue with parsing the term in #replace-terms:.
The following filter search should now work as expected:
#replaceterms:#(:search:#):,#(:<#term:|si:#term:>#):
The si: search function is no longer flagged as having sub-expression support.
Everything will now use group expansion for si:<>.
Everything will also allow spaces in the group expansion for si:.
For example:
si:<abc 123 foo|bar !not-this-value>
expands to:
<si:abc si:123 si:foo|si:bar !si:not-this-value>
Filters using the following search should now work as expected:
si:<search:>
Everything 1.5.0.1295a also fixes an issue with parsing the term in #replace-terms:.
The following filter search should now work as expected:
#replaceterms:#(:search:#):,#(:<#term:|si:#term:>#):